Sha256: 57898dbd1a7fc448e3029cecb34a74be916d7b00a295ed1d396e473d0a0cfc54
Contents?: true
Size: 960 Bytes
Versions: 1
Compression:
Stored size: 960 Bytes
Contents
module Refinery module Api module ControllerHelpers module StrongParameters def permitted_attributes Refinery::PermittedAttributes end delegate *Refinery::PermittedAttributes::ATTRIBUTES, to: :permitted_attributes, prefix: :permitted def permitted_image_attributes permitted_attributes.image_attributes end def permitted_page_attributes permitted_attributes.page_attributes + [ page_parts_attributes: permitted_page_part_attributes ] end def permitted_resource_attributes permitted_attributes.resource_attributes end def permitted_blog_post_attributes permitted_attributes.blog_post_attributes end def permitted_inquiries_inquiry_attributes permitted_attributes.inquiries_inquiry_attributes end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
refinerycms-api-1.0.0.beta | lib/refinery/api/controller_helpers/strong_parameters.rb |