lib/overapp/template_file/params.rb in overapp-0.5.0 vs lib/overapp/template_file/params.rb in overapp-0.5.1
- old
+ new
@@ -1,10 +1,10 @@
module Overapp
class TemplateFile
class Params
include FromHash
- attr_accessor :full_body
+ attr_accessor :full_body, :path
def body; full_body; end
include Enumerable
def each(&b)
note_params.each(&b)
end
@@ -28,13 +28,11 @@
remaining_body = nil
end
end
res
rescue => exp
- puts "Error in split_note_and_body #{path}"
- raise exp
+ raise "split_note_and_body #{path} #{exp.message}"
end
-
def note_params_single(one)
res = {}
note = one[:note]
res[:body] = one[:body]
\ No newline at end of file