Class: Workarea::Admin::ReleasablesController
- Inherits:
-
ApplicationController
- Object
- Workarea::ApplicationController
- ApplicationController
- Workarea::Admin::ReleasablesController
- Defined in:
- app/controllers/workarea/admin/releasables_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
#current_user, #find_sort, #wrap_in_view_model, wrap_in_view_model
Methods included from Publishing
#allow_publishing!, #allow_publishing?, #set_publishing_options
Methods included from Visiting
Instance Method Details
#index ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'app/controllers/workarea/admin/releasables_controller.rb', line 4 def index model = Release.find(params[:release_id]) self.current_release = model @release = ReleaseViewModel.wrap(model, ) search = Search::AdminReleasables.new(params) = .merge(show_type: true) @search = SearchViewModel.new(search, ) end |