Sha256: a5f7abaf8d61e0eee323ecde924eca66166a925278e02a19b39db642385f6321

Contents?: true

Size: 712 Bytes

Versions: 1

Compression:

Stored size: 712 Bytes

Contents

module ActionController
  class Base 

    include ApplicationControllerInstanceMethodsAndHelpers
    helper_method ApplicationControllerInstanceMethodsAndHelpers.instance_methods

    before_filter :setup

    def setup 
      #base config for layout, actions can add to this
      @layout = {
        :show_h1      => true, #set to false when don't want to show default h1
        :css          => [
          'manifest_common'
        ],
        :js           => [
        ],
        :admin        => {
          :title      => 'My Default Admin Title',
          :css        => [
            'manifest_admin'
          ],
          :js         => [ 
          ]
        }
        
      }
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pixelearth-3.2.4 config/initializers/application_controller_additions.rb