Class: Gluttonberg::Gallery

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Content::Publishable, Content::SlugManagement
Defined in:
app/models/gluttonberg/gallery.rb

Instance Method Summary collapse

Methods included from Content::Publishable

included

Methods included from Content::SlugManagement

included

Instance Method Details

#imagesObject



19
20
21
# File 'app/models/gluttonberg/gallery.rb', line 19

def images
  gallery_images.map{|i| i.image }
end

#nameObject



11
12
13
# File 'app/models/gluttonberg/gallery.rb', line 11

def name
  title
end

#name=(new_name) ⇒ Object



15
16
17
# File 'app/models/gluttonberg/gallery.rb', line 15

def name=(new_name)
  title = new_name
end