Sha256: 0650a47cdc9209765f811d0a7ffbdee8831afd8033e1c5f94a5f8b5e02e04a49
Contents?: true
Size: 1022 Bytes
Versions: 1
Compression:
Stored size: 1022 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 def set_breadcrumbs_prefix @breadcrumbs_prefix = "content_management" @breadcrumbs_prefix_link = "contents" 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, :subtitle, :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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mokio-0.0.13 | lib/mokio/concerns/controllers/contacts.rb |