Sha256: 0fdbe997a563bf0b7e8ffd2aa585c3fe62b9ac31b6f7cb0ba499092578d1bd64

Contents?: true

Size: 388 Bytes

Versions: 15

Compression:

Stored size: 388 Bytes

Contents

require 'the_role'
require 'rails'

module TheRole
  class Engine < Rails::Engine
    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#Engine
end#TheRole

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
the_role-1.5.1 lib/the_role/engine.rb
the_role-1.5.0 lib/the_role/engine.rb
the_role-1.4.1 lib/the_role/engine.rb
the_role-1.4.0 lib/the_role/engine.rb
the_role-1.3.1 lib/the_role/engine.rb
the_role-1.3.0 lib/the_role/engine.rb
the_role-1.2.1 lib/the_role/engine.rb
the_role-1.2.0 lib/the_role/engine.rb
the_role-1.1.1 lib/the_role/engine.rb
the_role-1.1.0 lib/the_role/engine.rb
the_role-1.0.0 lib/the_role/engine.rb
the_role-0.9.93 lib/the_role/engine.rb
the_role-0.9.92 lib/the_role/engine.rb
the_role-0.9.91 lib/the_role/engine.rb
the_role-0.9.9 lib/the_role/engine.rb