blob: 973c1776594d391ec65637bbc0b6cb08b390a7e5 (
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
|