Module: Adminpanel::RouterHelper
- Defined in:
- app/helpers/adminpanel/router_helper.rb
Instance Method Summary collapse
- #get_gallery_children(resource) ⇒ Object
- #has_fb_share?(resource) ⇒ Boolean
- #has_twitter_share?(resource) ⇒ Boolean
- #resources_parameters(resource) ⇒ Object
- #rest_path_names ⇒ Object
Instance Method Details
#get_gallery_children(resource) ⇒ Object
3 4 5 |
# File 'app/helpers/adminpanel/router_helper.rb', line 3 def get_gallery_children(resource) resource_class(resource).gallery_children end |
#has_fb_share?(resource) ⇒ Boolean
11 12 13 |
# File 'app/helpers/adminpanel/router_helper.rb', line 11 def has_fb_share?(resource) resource_class(resource).fb_share? end |
#has_twitter_share?(resource) ⇒ Boolean
15 16 17 |
# File 'app/helpers/adminpanel/router_helper.rb', line 15 def has_twitter_share?(resource) resource_class(resource).twitter_share? end |
#resources_parameters(resource) ⇒ Object
7 8 9 |
# File 'app/helpers/adminpanel/router_helper.rb', line 7 def resources_parameters(resource) resource_class(resource). end |
#rest_path_names ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'app/helpers/adminpanel/router_helper.rb', line 19 def rest_path_names { path_names: { new: I18n.t('routes.new'), edit: I18n.t('routes.edit'), show: I18n.t('routes.show') } } end |