lib/gris/grape_extensions/crud_helpers.rb in gris-0.1.0 vs lib/gris/grape_extensions/crud_helpers.rb in gris-0.1.1

- old
+ new

@@ -1,13 +1,9 @@ -# We are using a customized version of hashie_rails gem -# to prevent ActiveModel from raising a -# ForbiddenAttributesProtection exception when we mass -# assign attributes. +# We are using hashie-forbidden_attributes gem to prevent ActiveModel from +# raising a ForbiddenAttributesProtection exception when we mass assign +# attributes. # -# https://github.com/Maxim-Filimonov/hashie_rails/pull/3 -# https://github.com/dylanfareed/hashie_rails/tree/off-the-rails -# -require 'hashie_rails' +require 'hashie_forbidden_attributes' module Gris module CrudHelpers def create(type, options = {}) instance = type.create! options[:from]