From 3f5ed741c67cd8066a47005a9ff955403a5508b0 Mon Sep 17 00:00:00 2001 From: Luis Mendo Date: Fri, 2 Oct 2015 11:18:02 +0200 Subject: [PATCH] Permit nested attributes on page's translations. --- app/models/no_cms/pages/page.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/no_cms/pages/page.rb b/app/models/no_cms/pages/page.rb index b458422..afa1243 100644 --- a/app/models/no_cms/pages/page.rb +++ b/app/models/no_cms/pages/page.rb @@ -16,6 +16,7 @@ def self.home accepts_nested_attributes_for :blocks, allow_destroy: true translates :title, :body, :slug, :path, :draft, :css_class, :css_id, :cache_enabled + accepts_nested_attributes_for :translations validates :title, presence: true validates :body, presence: true if NoCms::Pages.use_body?