lib/rails-footnotes/view_subscriber.rb in rails3-footnotes-4.0.0.pre.5 vs lib/rails-footnotes/view_subscriber.rb in rails3-footnotes-4.0.0.pre.6
- old
+ new
@@ -28,17 +28,13 @@
def view
page && page.payload[:identifier]
end
def view_name
- view && view.gsub(Rails.root.join("app/views/"),'')
+ view && view.gsub(Rails.root.join("app/views/").to_s, '')
end
def layout
- page && Rails.root.join("app/views", page.payload[:layout])
- end
-
- def layout_name
page && page.payload[:layout]
end
end
def self.view_subscriber
\ No newline at end of file