aboutsummaryrefslogtreecommitdiffstats
path: root/lib/page_extensions.rb
blob: d28c10cdfdcf55b14bc7b324f4d8950804f0d497 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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

#         def self.included(base)
#           base.extend(ClassMethods).add_banners_relationship
#         end
#       end
#     end
#   end
# end