Module: Images::Models::Page

Defined in:
lib/images/models/page.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
8
9
10
# File 'lib/images/models/page.rb', line 5

def self.included(base)
  base.class_eval do
    has_many    :attachments
    has_many    :images,      :through => :attachments
  end
end