Sha256: d2e4615b05c0ff53865d4d0eb66f50bfa70d9c2ed8497aa5e83fecb1ac9ccccf
Contents?: true
Size: 1.17 KB
Versions: 3
Compression:
Stored size: 1.17 KB
Contents
module DmCms module PermittedParams #------------------------------------------------------------------------------ def cms_snippet_params params.require(:cms_snippet).permit! if can? :manage_content, :all end #------------------------------------------------------------------------------ def cms_blog_params params.require(:cms_blog).permit! if can? :manage_content, :all end #------------------------------------------------------------------------------ def cms_post_params params.require(:cms_post).permit! if can? :manage_content, :all end #------------------------------------------------------------------------------ def cms_page_params params.require(:cms_page).permit! if can? :manage_content, :all end #------------------------------------------------------------------------------ def cms_contentitem_params params.require(:cms_contentitem).permit! if can? :manage_content, :all end #------------------------------------------------------------------------------ def media_file_params params.require(:media_file).permit! if can? :manage_content, :all end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dm_cms-4.2.2.1 | app/models/dm_cms/permitted_params.rb |
dm_cms-4.2.2 | app/models/dm_cms/permitted_params.rb |
dm_cms-4.2.1.5 | app/models/dm_cms/permitted_params.rb |