Module: ButtonsHelper
- Defined in:
- app/helpers/buttons_helper.rb
Instance Method Summary collapse
Instance Method Details
#add_button? ⇒ Boolean
3 4 5 6 7 |
# File 'app/helpers/buttons_helper.rb', line 3 def Snaptable. && (!Snaptable. || .allow_create?(params[:controller])) end |
#delete_button? ⇒ Boolean
21 22 23 24 25 |
# File 'app/helpers/buttons_helper.rb', line 21 def Snaptable. && (!Snaptable. || .allow_modify?(params[:controller], "destroy")) end |
#edit_button? ⇒ Boolean
9 10 11 12 13 |
# File 'app/helpers/buttons_helper.rb', line 9 def Snaptable. && (!Snaptable. || .allow_modify?(params[:controller], "update")) end |
#show_button? ⇒ Boolean
15 16 17 18 19 |
# File 'app/helpers/buttons_helper.rb', line 15 def Snaptable. && (!Snaptable. || .allow_modify?(params[:controller], "read")) end |