Szymon Lach

Results 3 comments of Szymon Lach

Is there any other solution, better than adding a default value to the scope eg. ? `scope :scope_name, ->(string = '1') { sql }` Even more, if you pass '0'...

Solved in https://github.com/activerecord-hackery/ransack/issues/924, just add ```ruby def self.ransackable_scopes_skip_sanitize_args [:scope_name] end ``` to the model.

This could be solved by it https://github.com/joost/phony_rails/pull/190.