module ContextExposer::Macros
Public Instance Methods
context_exposer(name = :base, options = {})
click to toggle source
# File lib/context_exposer/macros.rb, line 3 def context_exposer name = :base, options = {} self.send :include, "ContextExposer::#{name.to_s.camelize}Controller".constantize integrates_with [options[:with]].flatten if options[:with] end
decorates_before_rendering()
click to toggle source
# File lib/context_exposer/macros.rb, line 9 def decorates_before_rendering unless defined? ::DecoratesBeforeRendering raise "DecoratesBeforeRendering not found, please include the gem 'decorates_before_rendering'" end self.send :include, DecoratesBeforeRendering end
Also aliased as: decorates_before_render