Skip to content

Commit

Permalink
Permit nested attributes on page's translations.
Browse files Browse the repository at this point in the history
  • Loading branch information
Luis Mendo committed Oct 2, 2015
1 parent 74aabbd commit 3f5ed74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/no_cms/pages/page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 3f5ed74

Please sign in to comment.