Methods
R
Instance Public methods
rhino_controller(controller)
   # File rhino/rhino/lib/rhino/resource/routing.rb
71 def rhino_controller(controller)
72   self.controller_name = "rhino/#{controller}"
73 end
rhino_routing(**options)
   # File rhino/rhino/lib/rhino/resource/routing.rb
62 def rhino_routing(**options)
63   self._route_key = options.delete(:key) if options.key?(:key)
64   self._route_path = options.delete(:path) if options.key?(:path)
65   self._route_singular = options.delete(:singular) if options.key?(:singular)
66 
67   self._rhino_routes = options.delete(:only) if options.key?(:only)
68   self._rhino_routes_except = options.delete(:except) if options.key?(:except)
69 end
route_api()
   # File rhino/rhino/lib/rhino/resource/routing.rb
47 def route_api
48   "/#{Rhino.namespace}/#{route_path}"
49 end
route_frontend()
   # File rhino/rhino/lib/rhino/resource/routing.rb
43 def route_frontend
44   "/#{route_path_frontend}"
45 end
route_key()
   # File rhino/rhino/lib/rhino/resource/routing.rb
23 def route_key
24   self._route_key ||= if route_singular?
25     name.demodulize.underscore
26   else
27     name.demodulize.underscore.pluralize
28   end
29 end
route_path()
   # File rhino/rhino/lib/rhino/resource/routing.rb
31 def route_path
32   self._route_path ||= route_key
33 end
route_path_frontend()
   # File rhino/rhino/lib/rhino/resource/routing.rb
39 def route_path_frontend
40   route_path.camelize(:lower)
41 end
route_singular?()
   # File rhino/rhino/lib/rhino/resource/routing.rb
35 def route_singular?
36   self._route_singular
37 end
routes()
   # File rhino/rhino/lib/rhino/resource/routing.rb
51 def routes
52   unless self._rhino_routes
53     if global_owner? # rubocop:disable Style/ConditionalAssignment
54       self._rhino_routes = %i[index show]
55     else
56       self._rhino_routes = %i[index create show update destroy]
57     end
58   end
59   self._rhino_routes - self._rhino_routes_except
60 end