From 25c05b5b8a579977b01978bf1fb432840af34255 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Tue, 16 Dec 2014 10:29:13 -0300 Subject: [PATCH] Do not show plugin namespace in pretty block name --- app/models/block.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/block.rb b/app/models/block.rb index e0b4797..4b53d83 100644 --- a/app/models/block.rb +++ b/app/models/block.rb @@ -129,7 +129,7 @@ class Block < ActiveRecord::Base end def self.pretty_name - self.name.gsub('Block','') + self.name.split('::').last.gsub('Block','') end # Returns the content to be used for this block. -- libgit2 0.21.2