Class: ActsAsTaggableOn::TaggingPolicy::Scope
- Inherits:
-
Object
- Object
- ActsAsTaggableOn::TaggingPolicy::Scope
- Defined in:
- app/policies/acts_as_taggable_on/tagging_policy.rb
Instance Attribute Summary collapse
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(user, scope) ⇒ Scope
constructor
A new instance of Scope.
- #resolve ⇒ Object
Constructor Details
#initialize(user, scope) ⇒ Scope
Returns a new instance of Scope.
7 8 9 10 |
# File 'app/policies/acts_as_taggable_on/tagging_policy.rb', line 7 def initialize(user, scope) @user = user @scope = scope end |
Instance Attribute Details
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
5 6 7 |
# File 'app/policies/acts_as_taggable_on/tagging_policy.rb', line 5 def scope @scope end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
5 6 7 |
# File 'app/policies/acts_as_taggable_on/tagging_policy.rb', line 5 def user @user end |
Instance Method Details
#resolve ⇒ Object
12 13 14 |
# File 'app/policies/acts_as_taggable_on/tagging_policy.rb', line 12 def resolve scope end |