It seems that where(nil)
is a real replacement of scoped
, which works both on Rails 3 and 4. 🙁
More Related Contents:
- How to use ANY instead of IN in a WHERE clause?
- ActiveRecord OR query Hash notation
- GroupingError: ERROR: column must appear in the GROUP BY clause or be used in an aggregate function
- Rails 4 nested attributes and has_many :through associaton in a form
- Safe ActiveRecord like query
- ActiveRecord::Base Without Table
- How to list of all the tables defined for the database when using active record?
- How to get a random number in Ruby
- UNION query with codeigniter’s active record pattern
- Why did Rails4 drop support for “assets” group in the Gemfile
- Rails 4 Authenticity Token
- When to use a “has_many :through” relation in Rails?
- Rails 5: ActiveRecord OR query
- Ruby on Rails. How do I use the Active Record .build method in a :belongs to relationship?
- Add Custom Field/Column to Devise with Rails 4
- ActiveRecord Find By Year, Day or Month on a Date field
- How does Rails ActiveRecord chain “where” clauses without multiple queries?
- Using turbolinks in a Rails link_to
- How would I use ON DUPLICATE KEY UPDATE in my CodeIgniter model?
- What are the brackets [5.1] after ActiveRecord Migration and how does it work? [duplicate]
- Redis + ActionController::Live threads not dying
- Postgres JSON data type Rails query
- Do rails rake tasks provide access to ActiveRecord models?
- how to add records to has_many :through association in rails
- How to implement bulk insert in Rails 3
- Rails 4 – checkboxes for has_and_belongs_to_many association
- Rails 4: Why are fonts not loading in production?
- Non persistent ActiveRecord model attributes
- How can I use ActiveRecord on a database that has a column named ‘valid’? (DangerousAttributeError)
- ActionController::InvalidAuthenticityToken in RegistrationsController#create