Sha256: 58ec48db5c07224c8e3d4c76ab4b190472d89c99ceefbbb78b6a646f93b095d6
Contents?: true
Size: 530 Bytes
Versions: 2
Compression:
Stored size: 530 Bytes
Contents
require 'the_role' require 'rails' module TheRole class Engine < Rails::Engine initializer "TheRole precompile hook", :group => :all do |app| app.config.assets.precompile += %w( admin_the_role.js admin_the_role.css ) end config.to_prepare do Role.send :include, TheRole::RoleModel if the_class_exists? :Role User.send :include, TheRole::UserModel if the_class_exists? :User ApplicationController.send :include, TheRole::Requires if the_class_exists? :ApplicationController end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
the_role-1.7.0 | lib/the_role/engine.rb |
the_role-1.6.9 | lib/the_role/engine.rb |