Commit 32b213c16cc4389a0686e64c7a06777982e99cf8
1 parent
99e46a3b
Exists in
master
and in
28 other branches
ActionItem806: fix bug on create blog
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
app/models/blog.rb
... | ... | @@ -13,8 +13,9 @@ class Blog < Folder |
13 | 13 | settings_items :posts_per_page, :type => :integer, :default => 20 |
14 | 14 | settings_items :title, :type => :string, :default => _('My blog') |
15 | 15 | |
16 | - before_save do |blog| | |
17 | - blog.name = 'blog' | |
16 | + def initialize(*args) | |
17 | + super(*args) | |
18 | + self.name = 'blog' | |
18 | 19 | end |
19 | 20 | |
20 | 21 | def self.short_description | ... | ... |