app/helpers/redditor/application_helper.rb in redditor-0.1.10 vs app/helpers/redditor/application_helper.rb in redditor-0.1.11
- old
+ new
@@ -1,4 +1,11 @@
module Redditor
module ApplicationHelper
+ def real_name content_block
+ content_block.class.name.underscore.sub('redditor/', '')
+ end
+
+ def redditor_validate f
+ render "redditor/admin/validate", {f: f}
+ end
end
end