Module: AdminLayoutActiveScaffoldHelper

Defined in:
app/helpers/admin_layout_helper.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.append_features(base) ⇒ Object



28
29
30
31
32
33
34
35
36
# File 'app/helpers/admin_layout_helper.rb', line 28

def self.append_features(base)
  super
  base.class_eval do 
    unless self.method_defined? :list_without_admin_helper
      alias :list_without_admin_helper :list 
      alias :list :list_with_admin_layout_helper
    end
  end
end

Instance Method Details

#list_with_admin_layout_helperObject



21
22
23
24
25
26
# File 'app/helpers/admin_layout_helper.rb', line 21

def list_with_admin_layout_helper
  @page_title = active_scaffold_config.label
  
  define_layout_variables
  list_without_admin_helper
end