Sha256: c1563c2e4cbed8eca603e8dfbca91203139f48e0b8a08f4b9f4a09a5a3d3db69
Contents?: true
Size: 610 Bytes
Versions: 250
Compression:
Stored size: 610 Bytes
Contents
# frozen_string_literal: true module Motor module ActiveRecordUtils module FetchMethods EXCLUDE_METHODS = %i[ password current_password password_confirmation devise_modules ].freeze module_function 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 end end end
Version data entries
250 entries across 250 versions & 7 rubygems