Upgraded to Rails 4
This commit is contained in:
@@ -18,7 +18,7 @@ class Attachment < ActiveRecord::Base
|
||||
# validates :thema, :presence => true
|
||||
validates :name, :presence => true
|
||||
scope :titlepic, ->{where(flag_titlepic: true)}
|
||||
default_scope order("LOWER(name)")
|
||||
default_scope { order("LOWER(name)") }
|
||||
belongs_to :parent, :polymorphic=>true
|
||||
def image?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user