Module: Charyf::Controller::Renderers::ClassMethods

Defined in:
lib/charyf/engine/controller/renderers.rb

Instance Method Summary collapse

Instance Method Details

#_render_filtersObject



27
28
29
# File 'lib/charyf/engine/controller/renderers.rb', line 27

def _render_filters
  @_render_filters ||= Charyf::Utils.create_action_filters
end

#_render_on?(action) ⇒ Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/charyf/engine/controller/renderers.rb', line 23

def _render_on?(action)
  Charyf::Utils.match_action_filters?(action.to_sym, _render_filters)
end

#auto_reply(only: [], except: []) ⇒ Object



19
20
21
# File 'lib/charyf/engine/controller/renderers.rb', line 19

def auto_reply(only: [], except: [])
  @_render_filters = Charyf::Utils.create_action_filters(only, except)
end