Sha256: f4da1d32fd9cd081468d1ee6d3bb5d33cd680d509e964502792fc7cb8f1f1653

Contents?: true

Size: 261 Bytes

Versions: 28

Compression:

Stored size: 261 Bytes

Contents

module HoboRapid
  # this after_filter is useful for the after_submit tag
  class PreviousUriFilter
    def self.filter(controller)
      if controller.request.get?
        controller.session[:previous_uri] = controller.request.path
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
hobo_rapid-2.0.0.pre6 lib/hobo_rapid/previous_uri_filter.rb
hobo_rapid-2.0.0.pre5 lib/hobo_rapid/previous_uri_filter.rb
hobo_rapid-2.0.0.pre4 lib/hobo_rapid/previous_uri_filter.rb
hobo_rapid-2.0.0.pre3 lib/hobo_rapid/previous_uri_filter.rb
hobo_rapid-2.0.0.pre2 lib/hobo_rapid/previous_uri_filter.rb
hobo_rapid-2.0.0.pre1 lib/hobo_rapid/previous_uri_filter.rb
hobo_rapid-1.4.0.pre8 lib/hobo_rapid/previous_uri_filter.rb
hobo_rapid-1.4.0.pre7 lib/hobo_rapid/previous_uri_filter.rb