Sha256: 55644dc780f9d80a3a6b839ff2570235148d68016dafd8ddc534a64fc847211c
Contents?: true
Size: 1.86 KB
Versions: 40
Compression:
Stored size: 1.86 KB
Contents
require 'muck-users' require 'rails' module MuckUsers class Engine < ::Rails::Engine def muck_name 'muck-users' end initializer 'muck-users.filter_paramters' do |app| app.config.filter_parameters << :password app.config.filter_parameters << :password_confirmation end initializer 'muck-users.add_admin_ui_links', :after => 'muck-engine.add_admin_ui_links' do # Add users to the dashboard MuckEngine.configuration.add_muck_dashboard_item('admin/users/dashboard_widget') # Add admin link for users and roles # MuckEngine.add_muck_admin_nav_item(I18n.translate('muck.engine.admin_users'), '/admin/users', '/images/admin/user.gif') rescue nil # MuckEngine.add_muck_admin_nav_item(I18n.translate('muck.engine.admin_access_codes'), '/admin/users', '/images/admin/user.gif') rescue nil MuckEngine.configuration.add_muck_admin_nav_item(I18n.translate('muck.engine.admin_users'), '/admin/users') MuckEngine.configuration.add_muck_admin_nav_item(I18n.translate('muck.engine.admin_roles'), '/admin/roles') MuckEngine.configuration.add_muck_admin_nav_item(I18n.translate('muck.engine.admin_access_codes'), '/admin/access_codes') end initializer 'muck-users.controllers' do ActiveSupport.on_load(:action_controller) do include MuckUsers::AuthenticApplication include MuckUsers::Exceptions end end initializer 'muck-users.helpers' do ActiveSupport.on_load(:action_view) do include MuckUsersHelper end end initializer 'muck-users.models' do ActiveSupport.on_load(:active_record) do include MuckUsers::SecureMethods include MuckUsers::Exceptions end end initializer 'muck-users.form' do MuckEngine::FormBuilder.send :include, MuckUsers::FormBuilder end end end
Version data entries
40 entries across 40 versions & 1 rubygems