Sha256: e8f20f6025ca259e6ebbf78095963fc70ea797b13bb22c163148ee83057efecc
Contents?: true
Size: 824 Bytes
Versions: 4
Compression:
Stored size: 824 Bytes
Contents
require 'active_support/railtie' require 'r3_plugin_toolbox' require_all File.dirname(__FILE__) + '/after_init' Rails3::Plugin::Extender.new do # extend action_controller with methods from some modules extend_rails :controller do extend_from_module Cream, :role extend_from_module Cream::Controller, :ability extend_from_module Cream::Helper, :role, :host end # extend action_view with methods from some modules extend_rails :view do extend_from_module Cream::View, :role, :host, :user_action_menu extend_from_module Cream::Helper, :role end after :initialize do load File.dirname(__FILE__) + '/after_init/role_config.rb' # # extend_rails :view do # extend_from_module Cream::View, :role # extend_from_module Cream::Helper, :role # end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cream-0.8.9.1 | lib/cream/configure/rails.rb |
cream-0.8.9 | lib/cream/configure/rails.rb |
cream-0.8.8 | lib/cream/configure/rails.rb |
cream-0.8.7 | lib/cream/configure/rails.rb |