Sha256: 2183fb3e73a04ceeb1978f0070fb675250f7f09797ed71bbeacf2f115c83e44a
Contents?: true
Size: 680 Bytes
Versions: 3
Compression:
Stored size: 680 Bytes
Contents
module Challah module Rolls require 'abstract_controller/rendering' class Engine < Rails::Engine end end end Challah.register_plugin :rolls do on_load :action_controller do ActionController::Base.send(:include, Challah::Rolls::Controller) ActionController::Base.send(:helper_method, :has) end on_load :active_record do ActiveRecord::Base.send(:extend, Challah::Rolls::Permission) ActiveRecord::Base.send(:extend, Challah::Rolls::PermissionRole) ActiveRecord::Base.send(:extend, Challah::Rolls::PermissionUser) ActiveRecord::Base.send(:extend, Challah::Rolls::Role) end extend_user Challah::Rolls::User, :challah_rolls_user end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
challah-rolls-0.2.0 | lib/challah/rolls/railtie.rb |
challah-rolls-0.1.1 | lib/challah/rolls/railtie.rb |
challah-rolls-0.1.0 | lib/challah/rolls/railtie.rb |