Skip to content

Commit 537e76b

Browse files
marcusgMatteo Giaccone
authored andcommitted
removed attr_accessible to let it work with rails4
1 parent e8f6945 commit 537e76b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/active_admin/globalize3/active_record_extension.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,11 @@ def active_admin_translates(*args, &block)
1717
translation_class.instance_eval &block
1818
end
1919

20-
unless translation_class.ancestors.map(&:to_s).include?('ActiveModel::ForbiddenAttributesProtection')
21-
translation_class.attr_accessible :locale
22-
translation_class.attr_accessible *args
23-
end
24-
25-
attr_accessible :translations_attributes unless ancestors.map(&:to_s).include?('ActiveModel::ForbiddenAttributesProtection')
2620
accepts_nested_attributes_for :translations, allow_destroy: true
2721

2822
include Methods
2923
end
3024

3125
end
3226
end
27+

0 commit comments

Comments
 (0)