From 1b335879d74c27211f085abcf2e321a7e8e4cc26 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Thu, 30 Jan 2014 14:25:44 -0300 Subject: [PATCH] rails3: fix mass assignment for profile.is_template atttribute --- app/models/profile.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/profile.rb b/app/models/profile.rb index 6d37750..8d1b4cc 100644 --- a/app/models/profile.rb +++ b/app/models/profile.rb @@ -3,7 +3,7 @@ # which by default is the one returned by Environment:default. class Profile < ActiveRecord::Base - attr_accessible :name, :identifier, :public_profile, :nickname, :custom_footer, :custom_header, :address, :zip_code, :contact_phone, :image_builder, :description, :closed, :template_id, :environment, :lat, :lng + attr_accessible :name, :identifier, :public_profile, :nickname, :custom_footer, :custom_header, :address, :zip_code, :contact_phone, :image_builder, :description, :closed, :template_id, :environment, :lat, :lng, :is_template # use for internationalizable human type names in search facets # reimplement on subclasses -- libgit2 0.21.2