diff options
-rw-r--r-- | app/models/refinery/banners/banner.rb | 2 | ||||
-rw-r--r-- | lib/page_extensions.rb | 32 |
2 files changed, 17 insertions, 17 deletions
diff --git a/app/models/refinery/banners/banner.rb b/app/models/refinery/banners/banner.rb index 30c151a..08b4b38 100644 --- a/app/models/refinery/banners/banner.rb +++ b/app/models/refinery/banners/banner.rb @@ -7,7 +7,7 @@ module Refinery acts_as_indexed :fields => [:name, :url, :title, :description] - attr_accessible :name, :title, :description, :image_id, :url, :is_active, :start_date, :expiry_date, :position, :page_ids, :locale + # attr_accessible :name, :title, :description, :image_id, :url, :is_active, :start_date, :expiry_date, :position, :page_ids, :locale validates :name, :presence => true validates_presence_of :start_date diff --git a/lib/page_extensions.rb b/lib/page_extensions.rb index 973c177..d28c10c 100644 --- a/lib/page_extensions.rb +++ b/lib/page_extensions.rb @@ -1,17 +1,17 @@ -module Refinery - module Banners - module Extensions - module Page - module ClassMethods - def add_banners_relationship - has_and_belongs_to_many :banners, :class_name => '::Refinery::Banners::Banner', :join_table => 'refinery_banners_pages' - end - end +# module Refinery +# module Banners +# module Extensions +# module Page +# module ClassMethods +# def add_banners_relationship +# has_and_belongs_to_many :banners, :class_name => '::Refinery::Banners::Banner', :join_table => 'refinery_banners_pages' +# end +# end - def self.included(base) - base.extend(ClassMethods).add_banners_relationship - end - end - end - end -end
\ No newline at end of file +# def self.included(base) +# base.extend(ClassMethods).add_banners_relationship +# end +# end +# end +# end +# end
\ No newline at end of file |