Skip to content

Commit

Permalink
Fix syntax for ree.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcreux committed May 9, 2012
1 parent 2266ff5 commit d112aa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/active_admin/resource_dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def member_action(name, options = {}, &block)
title = options.delete(:title)

controller do
before_filter :only => [name] { @page_title = title } if title
before_filter(:only => [name]) { @page_title = title } if title
define_method(name, &block || Proc.new{})
end
end
Expand All @@ -106,7 +106,7 @@ def collection_action(name, options = {}, &block)
title = options.delete(:title)

controller do
before_filter :only => [name] { @page_title = title } if title
before_filter(:only => [name]){ @page_title = title } if title
define_method(name, &block || Proc.new{})
end
end
Expand Down

0 comments on commit d112aa6

Please sign in to comment.