Fixed articles views.
This commit is contained in:
parent
fd361090b4
commit
f30e57dd49
18 changed files with 159 additions and 153 deletions
|
|
@ -11,4 +11,9 @@ module ArticlesHelper
|
|||
classes += " just_updated" if article.recently_updated && article.availability
|
||||
classes
|
||||
end
|
||||
|
||||
# Flatten search params, used in import from external database
|
||||
def search_params
|
||||
Hash[params[:search].map { |k,v| [k, (v.is_a?(Array) ? v.join(" ") : v)] }]
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue