Class: Gluttonberg::Gallery
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Gluttonberg::Gallery
- Includes:
- Content::Publishable, Content::SlugManagement
- Defined in:
- app/models/gluttonberg/gallery.rb
Instance Method Summary collapse
Methods included from Content::Publishable
Methods included from Content::SlugManagement
Instance Method Details
#images ⇒ Object
19 20 21 |
# File 'app/models/gluttonberg/gallery.rb', line 19 def images gallery_images.map{|i| i.image } end |
#name ⇒ Object
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 |