Sha256: a4395bc09440b238f7a18009c3d8585528caa7b079865e8cd70ce5cd12fb2baa
Contents?: true
Size: 477 Bytes
Versions: 1
Compression:
Stored size: 477 Bytes
Contents
class Admin::ReleasesController < Fae::BaseController private def build_assets @item.build_bottle_shot if @item.bottle_shot.blank? @item.build_hero_image if @item.hero_image.blank? @item.build_label_pdf if @item.label_pdf.blank? end def attributes_for_cloning [:name, :slug, :intro, :body, :wine_id, :release_date] end def associations_for_cloning [:aromas, :events, :bottle_shot, :label_pdf] end def use_pagination true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fae-rails-1.6.0 | spec/dummy/app/controllers/admin/releases_controller.rb |