_check_for_naming_collisions

in lib/aws-record/record/model_attributes.rb [67:80]


      def _check_for_naming_collisions(name, storage_name)
        if @attributes[storage_name.to_sym]
          raise Errors::NameCollision, "Custom storage name #{storage_name} already exists as an " \
                                       "attribute name in #{@attributes}"
        elsif @storage_attributes[name.to_s]
          raise Errors::NameCollision, "Attribute name #{name} already exists as a custom storage " \
                                       "name in #{@storage_attributes}"
        elsif @storage_attributes[storage_name]
          raise Errors::NameCollision, "Custom storage name #{storage_name} already in use in " \
                                       "#{@storage_attributes}"

        end
      end