Module: Adminpanel::RouterHelper

Defined in:
app/helpers/adminpanel/router_helper.rb

Instance Method Summary collapse

Instance Method Details



3
4
5
# File 'app/helpers/adminpanel/router_helper.rb', line 3

def get_gallery_children(resource)
  resource_class(resource).gallery_children
end

#resources_parameters(resource) ⇒ Object



7
8
9
# File 'app/helpers/adminpanel/router_helper.rb', line 7

def resources_parameters(resource)
  resource_class(resource).routes_options
end

#rest_path_names ⇒ Object



11
12
13
14
15
16
17
18
19
# File 'app/helpers/adminpanel/router_helper.rb', line 11

def rest_path_names
  {
    path_names: {
      new: I18n.t('routes.new'),
      edit: I18n.t('routes.edit'),
      show: I18n.t('routes.show')
    }
  }
end