module PandaPal::MiscHelper
Constants
- MigrationClass
Public Class Methods
Source
# File lib/panda_pal/helpers/misc_helper.rb, line 5 def self.to_boolean(v) if Rails.version < '5.0' ActiveRecord::Type::Boolean.new.type_cast_from_user(v) else ActiveRecord::Type::Boolean.new.deserialize(v) end end