Skip to content

Commit

Permalink
changed select options operator to starts_with
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Gräfenstein committed Apr 23, 2013
1 parent c255629 commit 0c12598
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/views/fancygrid/table.html.haml
Expand Up @@ -12,10 +12,11 @@
- next unless column.searchable
.fg-search-criterion
= hidden_field_tag(:identifier, column.identifier)
= hidden_field_tag(:operator, fancygrid.search_operator)
- if column.search_options
= hidden_field_tag(:operator, :starts_with)
= select_tag(:value, options_from_collection_for_select(column.search_options, :last, :first), :selected => column.search_value)
- else
= hidden_field_tag(:operator, fancygrid.search_operator)
= text_field_tag(:value, column.search_value)

- count = 1
Expand Down
4 changes: 2 additions & 2 deletions fancygrid.gemspec
Expand Up @@ -5,11 +5,11 @@

Gem::Specification.new do |s|
s.name = "fancygrid"
s.version = "2.0.6"
s.version = "2.0.7"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Alexander Graefenstein"]
s.date = "2013-04-22"
s.date = "2013-04-23"
s.description = "Enables easy table rendering in rails applications"
s.email = "giniedp@online.de"
s.extra_rdoc_files = [
Expand Down

0 comments on commit 0c12598

Please sign in to comment.