diff options
author | Dries Steenhouwer <steenhouwer.dries@gmail.com> | 2014-10-06 13:43:56 +0200 |
---|---|---|
committer | Dries Steenhouwer <steenhouwer.dries@gmail.com> | 2014-10-06 13:43:56 +0200 |
commit | 298f2dfd52b50f289f93f643f481b327bebd9028 (patch) | |
tree | a12a837aa259fa1bd9c73e63fe2ae3db0ef74cb7 | |
parent | cafa8c85752d1da98d2cd462bff3bd5bae2f4b4b (diff) | |
download | refinerycms-pc_banners-298f2dfd52b50f289f93f643f481b327bebd9028.tar.gz refinerycms-pc_banners-298f2dfd52b50f289f93f643f481b327bebd9028.tar.bz2 refinerycms-pc_banners-298f2dfd52b50f289f93f643f481b327bebd9028.zip |
fix rails4
-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 |