class RelatedList < ActiveRecord::Base
extend Enumerize
enumerize :list_type, in: %w(groups projects)
belongs_to :content
has_many :contents, :order =&g
Alternatively, you can put the order
clause on the model, for instance:
has_many :options, order: 'name' # In class Answer
Becomes
has_many :options # In class Answer
default_scope { order 'name' } # In class Option
PS: I got ArgumentError: wrong number of arguments (1 for 0)
when doing has_many :things, -> {}
.