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

Version Path
dm_newsletter-4.2.3.10 app/models/dm_newsletter/permitted_params.rb
dm_newsletter-4.2.3.9 app/models/dm_newsletter/permitted_params.rb
dm_newsletter-4.2.3.8 app/models/dm_newsletter/permitted_params.rb
dm_newsletter-4.2.3.7 app/models/dm_newsletter/permitted_params.rb
dm_newsletter-4.2.3.6 app/models/dm_newsletter/permitted_params.rb
dm_newsletter-4.2.3.5 app/models/dm_newsletter/permitted_params.rb
dm_newsletter-4.2.3.4 app/models/dm_newsletter/permitted_params.rb
dm_newsletter-4.2.3.3 app/models/dm_newsletter/permitted_params.rb
dm_newsletter-4.2.3.2 app/models/dm_newsletter/permitted_params.rb
dm_newsletter-4.2.3.1 app/models/dm_newsletter/permitted_params.rb
dm_newsletter-4.2.3 app/models/dm_newsletter/permitted_params.rb
dm_newsletter-4.2.2.3 app/models/dm_newsletter/permitted_params.rb
dm_newsletter-4.2.2.2 app/models/dm_newsletter/permitted_params.rb
dm_newsletter-4.2.2.1 app/models/dm_newsletter/permitted_params.rb
dm_newsletter-4.2.2 app/models/dm_newsletter/permitted_params.rb
dm_newsletter-4.2.1.5 app/models/dm_newsletter/permitted_params.rb