Class: ActiveRecord::Relation

Inherits:
Object
  • Object
show all
Defined in:
lib/r_kit/active_record_utility/active_record_extend.rb

Instance Method Summary collapse

Instance Method Details

#scoped?(name) ⇒ Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/r_kit/active_record_utility/active_record_extend.rb', line 29

def scoped? name
  scopes.include? name
end