Module: Policy::DefaultPolicy
- Included in:
- Policy
- Defined in:
- app/policies/policy.rb
Instance Method Summary collapse
- #create? ⇒ Boolean
- #destroy? ⇒ Boolean
- #edit? ⇒ Boolean
- #index ⇒ Object
- #new? ⇒ Boolean
- #show? ⇒ Boolean
- #update? ⇒ Boolean
Instance Method Details
#create? ⇒ Boolean
13 14 15 |
# File 'app/policies/policy.rb', line 13 def create? new? end |
#destroy? ⇒ Boolean
29 30 31 |
# File 'app/policies/policy.rb', line 29 def destroy? edit? end |
#edit? ⇒ Boolean
21 22 23 |
# File 'app/policies/policy.rb', line 21 def edit? false end |
#index ⇒ Object
5 6 7 |
# File 'app/policies/policy.rb', line 5 def index false end |
#new? ⇒ Boolean
9 10 11 |
# File 'app/policies/policy.rb', line 9 def new? false end |
#show? ⇒ Boolean
17 18 19 |
# File 'app/policies/policy.rb', line 17 def show? false end |
#update? ⇒ Boolean
25 26 27 |
# File 'app/policies/policy.rb', line 25 def update? edit? end |