Module: Cms::Behaviors::Rendering::MacroMethods

Defined in:
lib/cms/behaviors/rendering.rb

Instance Method Summary collapse

Instance Method Details

#is_renderable(options = {}) ⇒ Object



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/cms/behaviors/rendering.rb', line 33

def is_renderable(options={})
      
  @instance_variable_name_for_view = options[:instance_variable_name_for_view]
      
  extend ClassMethods
  include InstanceMethods
      
  include ActionController::Helpers
  include ActionController::RequestForgeryProtection

  helper ApplicationHelper      
      
  attr_accessor :controller
  delegate :params, :session, :request, :flash, :to => :controller
      
end

#renderable?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/cms/behaviors/rendering.rb', line 30

def renderable?
  false
end