Sha256: d9c4f1130ea3431ffc2730a6ca36ac7df944d76664ba2443522202c192906fda

Contents?: true

Size: 1.57 KB

Versions: 2

Compression:

Stored size: 1.57 KB

Contents

require File.join(File.dirname(__FILE__), 'info')
module Zena
  module App
    def self.included(base)
      base.prepend_view_path SITES_ROOT
      base.class_eval do
        include Zena::Use::Authentification::ControllerMethods
        include Zena::Use::Dates::ControllerMethods
        include Zena::Use::ErrorRendering::ControllerMethods
        include Zena::Use::I18n::ControllerMethods
        include Zena::Use::Refactor::ControllerMethods
        include Zena::Use::Rendering::ControllerMethods
        include Zena::Use::Urls::ControllerMethods
        include Zena::Use::Zafu::ControllerMethods

        # FIXME: could we move these into their modules ?
        before_filter :set_lang
        before_filter :authorize
        before_filter :check_lang
        after_filter  :set_encoding
        layout        false

        helper  Zena::Acts::Secure
        helper  Zena::Use::Ajax::ViewMethods
        helper  Zena::Use::Calendar::ViewMethods
        helper  Zena::Use::Dates::ViewMethods
        helper  Zena::Use::ErrorRendering::ViewMethods
        helper  Zena::Use::HtmlTags::ViewMethods
        helper  Zena::Use::I18n::ViewMethods
        helper  Zena::Use::NestedAttributesAlias::ViewMethods
        helper  Zena::Use::Refactor::ViewMethods
        helper  Zena::Use::Rendering::ViewMethods
        helper  Zena::Use::Urls::ViewMethods
        helper  Zena::Use::Zafu::ViewMethods
        helper  Zena::Use::Zazen::ViewMethods
      end
      Bricks::Patcher.apply_patches('application_controller.rb')
      Bricks::Patcher.apply_patches('application_helper.rb')
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
zena-0.15.2 lib/zena/app.rb
zena-0.15.1 lib/zena/app.rb