Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems filtering display of assets #69

Open
cattruscott opened this issue Jan 8, 2014 · 0 comments
Open

Problems filtering display of assets #69

cattruscott opened this issue Jan 8, 2014 · 0 comments

Comments

@cattruscott
Copy link

On a radiant site running ruby 1.9.x we were unable to filter the assets by images in the admin interface. The error was:

NoMethodError (undefined method `any?' for "image":String):
vendor/bundle/ruby/1.9.1/gems/radiant-clipped-extension-1.1.1/app/controllers/admin/assets_controller.rb:13:in `index'

The issue appears to be the change from 1.8.7 which no longer allows you to enumerate strings. The ruby brain sitting next to me said that his untested fix would be to change line 10 in assets_controller.rb to:

@types = Array(params[:filter] || [])

My fix was to downgrade ruby for the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant