Commit 5b9a40dd
Changed files (1)
app
models
app/models/category.rb
@@ -1,5 +1,5 @@
class Category < ActiveRecord::Base
- has_and_belongs_to_many :creations, :join_table => 'creations_categories'
+ has_many :creations
default_scope -> { order(:name) }
def to_param