Skip to content

Commit

Permalink
Fixed bug: we have to select vars by action before calling uniq_by(:n…
Browse files Browse the repository at this point in the history
…ame) method
  • Loading branch information
eLafo committed Sep 13, 2011
1 parent d769a7d commit edb37dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/omniturize/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def initialize(controller)
end

def vars(options = {})
meta_collection_to_values(self.class.meta_vars.uniq_by(:name), options[:action])
meta_collection_to_values(self.class.meta_vars, options[:action]).uniq_by(:name)
end

def js_events(options = {})
Expand Down

0 comments on commit edb37dc

Please sign in to comment.