Class: AnotherApi::ApiTokenScopedPolicy
- Inherits:
-
ActionPolicy::Base
- Object
- ActionPolicy::Base
- AnotherApi::ApiTokenScopedPolicy
- Defined in:
- lib/another_api/api_token_scoped_policy.rb
Direct Known Subclasses
Instance Method Summary collapse
- #create? ⇒ Boolean
- #destroy? ⇒ Boolean
- #fallback? ⇒ Boolean
- #index? ⇒ Boolean
- #manage? ⇒ Boolean
- #show? ⇒ Boolean
- #update? ⇒ Boolean
Instance Method Details
#create? ⇒ Boolean
12 |
# File 'lib/another_api/api_token_scoped_policy.rb', line 12 def create? = allows?(scope_for_action(:create)) |
#destroy? ⇒ Boolean
14 |
# File 'lib/another_api/api_token_scoped_policy.rb', line 14 def destroy? = allows?(scope_for_action(:delete)) |
#fallback? ⇒ Boolean
15 |
# File 'lib/another_api/api_token_scoped_policy.rb', line 15 def fallback? = false |
#index? ⇒ Boolean
10 |
# File 'lib/another_api/api_token_scoped_policy.rb', line 10 def index? = allows?(scope_for_action(:list)) |
#manage? ⇒ Boolean
16 |
# File 'lib/another_api/api_token_scoped_policy.rb', line 16 def manage? = false |
#show? ⇒ Boolean
11 |
# File 'lib/another_api/api_token_scoped_policy.rb', line 11 def show? = allows?(scope_for_action(:show)) |
#update? ⇒ Boolean
13 |
# File 'lib/another_api/api_token_scoped_policy.rb', line 13 def update? = allows?(scope_for_action(:update)) |