Sha256: d9cd8888be490c74777f8878758488a9bd77dfb57dcd9928795577b48a53f643
Contents?: true
Size: 768 Bytes
Versions: 2
Compression:
Stored size: 768 Bytes
Contents
require 'active_support/railtie' require 'r3_plugin_toolbox' 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, :local_host, :auth_label # extend_from_module Cream::Link, :session, :registration, :rest, :session # end # extend action_view with methods from some modules extend_rails :view do extend_from_module Cream::View, :role, :user_action_menu extend_from_module Cream::Helper, :role end after :initialize do puts "Rails app initialized" require_all File.dirname(__FILE__) + '/after_init' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cream-0.5.7 | lib/cream/configure/rails.rb |
cream-0.5.6 | lib/cream/configure/rails.rb |