lib/survey_gizmo/multilingual_title.rb in survey-gizmo-ruby-6.4.0 vs lib/survey_gizmo/multilingual_title.rb in survey-gizmo-ruby-6.4.1

- old
+ new

@@ -3,13 +3,12 @@ module MultilingualTitle extend ActiveSupport::Concern included do attribute :title, Hash - alias_method_chain :title=, :multilingual end - def title_with_multilingual=(val) - self.title_without_multilingual = val.is_a?(Hash) ? val['English'] : val + def title=(val) + super(val.is_a?(Hash) ? val['English'] : val) end end end