module RedmineDefaultGroup
module AccountControllerPatch
# Insert overrides here, for example:
def register_automatically_with_default_group(user, &block)
register_automatically_without_default_group(user, &block)
@group = Group.find(:first, :conditions => ["LOWER(lastname) = ?", Setting.plugin_redmine_default_group['group'].downcase])
alias_method_chain :register_automatically, :default_group # This tells Redmine to allow me to extend show by letting me call it via "show_without_plugin" above.
# I can outright override it by just calling it "def show", at which case the original controller's method will be overridden instead of extended.