Sha256: 8c83d789b800030cf28597d1df875077da00ad53055118df8effc0df138a248a
Contents?: true
Size: 664 Bytes
Versions: 1
Compression:
Stored size: 664 Bytes
Contents
class ArtistsController < ApplicationController def dashboard model = Struct.new(:title).new("Dashboard") render cell( Artist::Cell::Dashboard, model, theme: "cute" ) end def widget model = Struct.new(:title).new("Dashboard") render cell( Artist::Cell::Dashboard, model ), layout: false end include Trailblazer::Rails::Controller::Result def with_expose run Song::New render cell( Artist::Cell::Show, result ) # render cell( Artist::Cell::Show, expose(search: @search, %w{model contract.default}) ) end def with_expose_and_args run Song::New render cell( Artist::Cell::Show, result, song: @model ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
trailblazer-future-2.1.0.rc1 | test/rails5.0/app/controllers/artists_controller.rb |