lib/templatable.rb in tbpgr_utils-0.0.9 vs lib/templatable.rb in tbpgr_utils-0.0.10

- old
+ new

@@ -1,8 +1,8 @@ # encoding: utf-8 -require "erb" -require "active_support" +require 'erb' +require 'active_support/concern' module Templatable extend ActiveSupport::Concern module ClassMethods @@ -12,10 +12,10 @@ end define_method :get_placeholders do ret = template.scan /<%=placeholders\[:(.*)\]%>/ ret_hash = {} - ret.each {|v| ret_hash[v.first.to_sym] = v.first} + ret.each { |v| ret_hash[v.first.to_sym] = v.first } ret_hash end end end