Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1 from hzeus/master

Avoid ActiveSupport::Concern deprecation warnings in lib/glow/filter
  • Loading branch information...
commit 375d43920bb1a60ce102a78bb78c161e59f711f6 2 parents c11974b + e95cbfd
Daniel Kirsch authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 lib/glow/filter.rb
View
14 lib/glow/filter.rb
@@ -6,14 +6,14 @@ module Filter
included do
after_filter :flash_to_headers
end
- module InstanceMethods
- def flash_to_headers
- return unless flash.any? && request.xhr?
- type, message = flash.first
- response.headers['X-Message'] = message.to_s.unpack('U*').map{ |i| "&##{i};" }.join
+
+ def flash_to_headers
+ return unless flash.any? && request.xhr?
+ type, message = flash.first
+ response.headers['X-Message'] = message.to_s.unpack('U*').map{ |i| "&##{i};" }.join
response.headers['X-Message-Type'] = type.to_s
- flash.discard # don't want the flash to appear when you reload page
- end
+ flash.discard # don't want the flash to appear when you reload page
end
+
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.