Refinery::Plugin.register do |plugin| plugin.title = "Users" plugin.description = "Manage users" plugin.version = 1.0 plugin.menu_match = /admin\/users$/ plugin.activity = { :class => User, :url_prefix => "edit_", :title => "login", :created_image => "user_add.png", :updated_image => "user_edit.png" } end module ::Refinery class << self attr_accessor :authentication_login_field def authentication_login_field @authentication_login_field ||= 'login' end end end