Skip to content

Commit

Permalink
Fixed bug with collections
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarket committed Nov 2, 2011
1 parent 8d2d533 commit 7036328
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -3,5 +3,5 @@
Gemfile.lock
pkg/*
\#*#
.\#*#
.\#*

4 changes: 2 additions & 2 deletions lib/facet_for.rb
Expand Up @@ -272,10 +272,10 @@ def check_box_checked(value = "1")
end

def facet_collection
name = "#{@facet[:column_name]}_#{@facet[:type]}"
name = "#{@facet[:column_name]}_eq"
selected = @facet[:object].send(name)

select_tag self.name_for(name), options_for_collection_select(@facet[:collection], :id, :to_s, selected), :include_blank => true
select_tag self.name_for(name), options_from_collection_for_select(@facet[:collection], :id, :to_s, selected), :include_blank => true
end

def label(string_name, string_label = nil)
Expand Down
2 changes: 1 addition & 1 deletion lib/facet_for/version.rb
@@ -1,3 +1,3 @@
module FacetFor
VERSION = "0.0.4"
VERSION = "0.0.5"
end

0 comments on commit 7036328

Please sign in to comment.