Skip to content

Problems filtering display of assets #69

Description

@cattruscott

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions