relationship type fields of a content type should never be localized

did committed Oct 01, 2015
commit 17775648a5c272e6f01d9c9c74742963e75cb254
Showing 1 changed file with 4 additions and 0 deletions
locomotive/steam/adapters/filesystem/yaml_loaders/content_type.rb b/lib/locomotive/steam/adapters/filesystem/yaml_loaders/content_type.rb +4 -0
@@ @@ -41,6 +41,10 @@ module Locomotive
attributes[:label] = name.to_s.humanize
end
+ if %w(belongs_to has_many many_to_many).include?(attributes[:type])
+ attributes[:localized] = false
+ end
+
if select_options = attributes.delete(:select_options)
attributes[:select_options] = build_select_options(select_options)
end