afa94b9af5
If you're using Rails 4 strong parameters, you will get a ForbiddenAttributesProtection exceptions when mass-assigning attributes. This gem allows mass assignment. It prevents Mash from responding to :permitted? and therefore triggering this behavior in ForbiddenAttributesProtection. WWW: https://github.com/Maxim-Filimonov/hashie-forbidden_attributes
21 lines
438 B
Makefile
21 lines
438 B
Makefile
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= hashie-forbidden_attributes
|
|
PORTVERSION= 0.1.1
|
|
CATEGORIES= devel rubygems
|
|
MASTER_SITES= RG
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Hashie compatibility layer for forbidden attributes protection
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/MIT-LICENSE
|
|
|
|
RUN_DEPENDS= rubygem-hashie>=3.0:devel/rubygem-hashie
|
|
|
|
NO_ARCH= yes
|
|
USE_RUBY= yes
|
|
USES= gem
|
|
|
|
.include <bsd.port.mk>
|