Commit 25c05b5b8a579977b01978bf1fb432840af34255

Authored by Victor Costa
1 parent e42898b8

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 129 end
130 130  
131 131 def self.pretty_name
132   - self.name.gsub('Block','')
  132 + self.name.split('::').last.gsub('Block','')
133 133 end
134 134  
135 135 # Returns the content to be used for this block.
... ...