vendor/rails/actionpack/lib/action_view/template.rb in radiant-0.9.1 vs vendor/rails/actionpack/lib/action_view/template.rb in radiant-1.0.0.rc1
- old
+ new
@@ -43,11 +43,11 @@
def load!
end
def self.new_and_loaded(path)
- returning new(path) do |path|
- path.load!
+ new(path).tap do |_path|
+ _path.load!
end
end
private
def relative_path_for_template_file(full_file_path)