default order or where clause for all queries
In my Rails app have a default scope that looks like this: default_scope order: 'external_updated_at DESC' I …
ruby-on-rails-4 default-scopeEverywhere on the internet people mention that using the rails default_scope is a bad idea, and the top hits …
ruby-on-rails default-scopeI know named_scope has been changed to scope in rails 3. How do I perform default_scope in rails 3, I've …
ruby-on-rails activerecord scope default-scopeI have a situation where the behavior of an existing app is changing and it's causing me a major headache. …
ruby-on-rails ruby-on-rails-3 activerecord named-scope default-scopeIn a resource registered with ActiveAdmin, I have the following default_scope defined for the model: default_scope :order => …
ruby-on-rails activeadmin default-scopeSuppose I have a Post model, and a Comment model. Using a common pattern, Post has_many Comments. If Comment …
ruby-on-rails default-scopeI can't find too much documentation on applying a default scope to a model in yii, I was wondering if …
yii relation scopes default-scopemy model has default_scope(:order => 'created_at' ) my tests (rspec, factory girl, shoulda, etc.) are: require 'spec/spec_…
ruby testing rspec scope default-scopeIn my Post.rb model, I have default_scope :conditions => {:deleted => 'false'} But if I try to run …
ruby-on-rails models default-scope