Class: Skyline::Sections::LinkSection

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
NestedAttributesPositioning, Skyline::SectionItem
Defined in:
app/models/skyline/sections/link_section.rb

Instance Method Summary collapse

Methods included from Skyline::SectionItem

#to_text

Instance Method Details

#cloneObject



11
12
13
14
15
# File 'app/models/skyline/sections/link_section.rb', line 11

def clone
  returning super do |clone|
    clone.links = self.links.collect{|link| link.clone}
  end
end