module Motor::ActiveRecordUtils::FetchMethods
Constants
- EXCLUDE_METHODS
Public Instance Methods
call(model)
click to toggle source
# File lib/motor/active_record_utils/fetch_methods.rb, line 15 def call(model) (model.instance_methods(false) - model.superclass.instance_methods).reject do |name| next true if EXCLUDE_METHODS.include?(name) next true if name.to_s.match?(/(:?=|\?|_id)\z/) next true if name.to_s.match?(/\A(?:validate|autosave)_associated_records/) end end