Sha256: 7fe6850a4ffdf503cf9cfcfd31ec2c933acb60e1fbda616268fb5b3696f43470
Contents?: true
Size: 597 Bytes
Versions: 1
Compression:
Stored size: 597 Bytes
Contents
module Ecm module News module Backend class ItemsController < Itsf::Backend::Resource::BaseController include ResourcesController::Sorting include ResourcesController::FriendlyIdConcern include ResourcesController::ActsAsPublishedConcern def self.resource_class Ecm::News::Item end private def permitted_params params .require(:item) .permit(:title, :locale, :body, :link_to_more, :published, pictures_attributes: [ :image, :_destroy, :id ]) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ecm_news2_backend-1.2.6 | app/controllers/ecm/news/backend/items_controller.rb |