method

scope_for

Importance_0
v5.1.7 - Show latest stable - 0 notes - Class: ActiveRecord::Reflection::MacroReflection
scope_for(klass) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/reflection.rb, line 369
      def scope_for(klass)
        scope ? klass.unscoped.instance_exec(nil, &scope) : klass.unscoped
      end
Register or log in to add new notes.