Class: Ecm::Pictures::PictureGallery

Inherits:
ActiveRecord::Base
  • Object
show all
Extended by:
FriendlyId
Defined in:
app/models/ecm/pictures/picture_gallery.rb

Instance Method Summary collapse

Instance Method Details

#set_defaultsObject



26
27
28
29
30
# File 'app/models/ecm/pictures/picture_gallery.rb', line 26

def set_defaults
  if new_record?
    self.link_images = true if self.link_images.nil?
  end
end