lib/app/models/layout.rb in slightcms-0.0.6 vs lib/app/models/layout.rb in slightcms-0.0.7
- old
+ new
@@ -1,14 +1,15 @@
module Slightcms
class Layout < ActiveRecord::Base
- set_table_name 'jakfdajef'
+ # Change default table name
+ set_table_name 'slightcms_layouts'
# Default order
default_scope :order => 'name'
# Associations
- has_many :pages, :class_name => "SlightcmsPage"
+ has_many :pages, :class_name => "Slightcms::Page"
# Validations
validates_presence_of :name
validates_uniqueness_of :name
validates_presence_of :content
\ No newline at end of file