module ARLightning::ActiveRecord
Public Instance Methods
lightning(*args)
click to toggle source
# File lib/ar_lightning/active_record.rb, line 3 def lightning(*args) columns = args.present? ? args : column_names connection.select_all(select(columns).arel).each do |attrs| attrs.each_key do |attr| attrs[attr] = type_cast_attribute(attr, attrs) end end end