I need filter 'apps' in my rails project based on whether they support iphone. I am trying to create a named scope for this purpose but I am getting the following error.
app/models/app.rb:21: syntax error, unexpected '}', expecting =>
app/models/app.rb:21: syntax error, unexpected '}', expecting =>
app/controllers/apps_controller.rb:5:in `index'
app.rb
named_scope :with_iphone_support,
joins: :version,
conditions: {:versions.any{ |v| v.iphone_support == true}}