lib/alephant/publisher/views/base.rb in alephant-publisher-0.6.1 vs lib/alephant/publisher/views/base.rb in alephant-publisher-0.6.2
- old
+ new
@@ -29,10 +29,10 @@
module ClassMethods
attr_accessor :base_path
def inherited(subclass)
- current_dir = File.dirname(caller.first[/^[^:]+/])
+ current_dir = File.dirname(caller.first[/\/[^:]+/])
dir_path = Pathname.new(File.join(current_dir,'..')).realdirpath
subclass.base_path = dir_path.to_s
Alephant::Publisher::Views.register(subclass)