Module: LegacyMigrations::Squirrel::NamedScopeHook
- Included in:
- ActiveRecord::NamedScope::Scope
- Defined in:
- lib/legacy_migrations/squirrel/squirrel.rb
Instance Method Summary collapse
Instance Method Details
#scoped(*args, &blk) ⇒ Object
49 50 51 52 |
# File 'lib/legacy_migrations/squirrel/squirrel.rb', line 49 def scoped *args, &blk args = blk ? [Query.new(self, &blk).to_find_parameters] : args scopes[:scoped].call(self, *args) end |