Sha256: 3fc9d748ef8eb611752b6173838285cbb6b1527aefeb256ba57bdf6b2c13c310
Contents?: true
Size: 862 Bytes
Versions: 2
Compression:
Stored size: 862 Bytes
Contents
module Mokio module Concerns module Controllers # # Concern for ContactsController # module Contacts extend ActiveSupport::Concern included do end # # Extended CommonController new (Mokio::Concerns::Controllers::Common) # def new super obj.build_contact_template end private # # Never trust parameters from the scary internet, only allow the white list through. # def contact_params #:doc: params.require(:contact).permit(extended_parameters, :title, :intro, :content, :article_type, :contact, :active,:home_page, :lang_id, :recipient_emails, :menu_ids => [], :contact_template_attributes => Mokio::ContactTemplate.contact_template_attributes) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mokio-0.0.6 | lib/mokio/concerns/controllers/contacts.rb |
mokio-0.0.5 | lib/mokio/concerns/controllers/contacts.rb |