Skip to content

Commit

Permalink
settings_controller_patch.rb: Cleanup.
Browse files Browse the repository at this point in the history
Removed/Fixed temporary function name … d'oh!
  • Loading branch information
tokkee committed Feb 23, 2011
1 parent 199d398 commit 78ae97a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/gitosis/patches/settings_controller_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ module Gitosis
module Patches
module SettingsControllerPatch

def plugin_with_foo
if params[:commit] and params[:commit] == 'Apply'
def plugin_with_update_repo
if params[:commit] and params[:commit] == 'Apply'
Gitosis.update_repositories(Project.active)
end
plugin_without_foo
end
plugin_without_update_repo
end

def self.included(base)
base.class_eval do
unloadable
end
base.send(:alias_method_chain, :plugin, :foo)
base.send(:alias_method_chain, :plugin, :update_repo)
end
end
end
Expand Down

0 comments on commit 78ae97a

Please sign in to comment.