module Dicer::ActionController::ClassMethods
Public Instance Methods
context_for(action, context_class = nil, &context_define)
click to toggle source
# File lib/dicer/railtie/action_controller.rb, line 18 def context_for(action, context_class = nil, &context_define) context = context_class || Class.new(Dicer::Context, &context_define) default_contexts[action.to_s.to_sym] = context end
default_contexts()
click to toggle source
# File lib/dicer/railtie/action_controller.rb, line 24 def default_contexts @default_contexts ||= {}.tap do |hash| begin hash.default = ::ApplicationContext rescue NameError end end end