Commit 25c05b5b8a579977b01978bf1fb432840af34255
1 parent
e42898b8
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Do not show plugin namespace in pretty block name
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/block.rb
@@ -129,7 +129,7 @@ class Block < ActiveRecord::Base | @@ -129,7 +129,7 @@ class Block < ActiveRecord::Base | ||
129 | end | 129 | end |
130 | 130 | ||
131 | def self.pretty_name | 131 | def self.pretty_name |
132 | - self.name.gsub('Block','') | 132 | + self.name.split('::').last.gsub('Block','') |
133 | end | 133 | end |
134 | 134 | ||
135 | # Returns the content to be used for this block. | 135 | # Returns the content to be used for this block. |