Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
277df57e46 | |||
52199af407 |
@ -18,3 +18,8 @@ Licence
|
||||
=======
|
||||
|
||||
is licensed under the terms of the BSD license.
|
||||
|
||||
Tips
|
||||
====
|
||||
|
||||
Assets precompile: rake assets:precompile
|
||||
|
@ -27,7 +27,8 @@ module PreferencesHelper
|
||||
end
|
||||
if @preference.term
|
||||
conditions.push "#{sort_col} LIKE ?"
|
||||
params.push "%#{@preference.term}%"
|
||||
search_term = ActiveSupport::Inflector.transliterate(@preference.term)
|
||||
params.push "%#{search_term}%"
|
||||
end
|
||||
[ conditions.join(" AND ") ] + params
|
||||
end
|
||||
|
@ -76,4 +76,6 @@ Rails.application.configure do
|
||||
|
||||
# Do not dump schema after migrations.
|
||||
config.active_record.dump_schema_after_migration = false
|
||||
|
||||
config.assets.prefix="/assets"
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user