Sha256: 4a85987dabacb36a7fe4ced8029b1bfa8e768ff43ed197244ca82c1240257286
Contents?: true
Size: 678 Bytes
Versions: 16
Compression:
Stored size: 678 Bytes
Contents
module DmNewsletter module PermittedParams #------------------------------------------------------------------------------ def newsletter_params params.require(:newsletter).permit! if can? :manage_newsletters, :all end #------------------------------------------------------------------------------ def standard_newsletter_params params.require(:standard_newsletter).permit! if can? :manage_newsletters, :all end #------------------------------------------------------------------------------ def mailchimp_newsletter_params params.require(:mailchimp_newsletter).permit! if can? :manage_newsletters, :all end end end
Version data entries
16 entries across 16 versions & 1 rubygems