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.2.6 lib/hobo_rapid/previous_uri_filter.rb
hobo_rapid-2.2.5 lib/hobo_rapid/previous_uri_filter.rb
hobo_rapid-2.2.4 lib/hobo_rapid/previous_uri_filter.rb
hobo_rapid-2.2.3 lib/hobo_rapid/previous_uri_filter.rb
hobo_rapid-2.2.2 lib/hobo_rapid/previous_uri_filter.rb
hobo_rapid-2.2.1 lib/hobo_rapid/previous_uri_filter.rb
hobo_rapid-2.2.0 lib/hobo_rapid/previous_uri_filter.rb
hobo_rapid-2.1.2 lib/hobo_rapid/previous_uri_filter.rb
hobo_rapid-2.1.1 lib/hobo_rapid/previous_uri_filter.rb
hobo_rapid-2.1.0 lib/hobo_rapid/previous_uri_filter.rb
hobo_rapid-2.1.0.pre4 lib/hobo_rapid/previous_uri_filter.rb
hobo_rapid-2.1.0.pre3 lib/hobo_rapid/previous_uri_filter.rb
hobo_rapid-2.1.0.pre2 lib/hobo_rapid/previous_uri_filter.rb
hobo_rapid-2.1.0.pre1 lib/hobo_rapid/previous_uri_filter.rb
hobo_rapid-2.0.1 lib/hobo_rapid/previous_uri_filter.rb
hobo_rapid-2.0.0 lib/hobo_rapid/previous_uri_filter.rb
hobo_rapid-2.0.0.pre10 lib/hobo_rapid/previous_uri_filter.rb
hobo_rapid-2.0.0.pre9 lib/hobo_rapid/previous_uri_filter.rb
hobo_rapid-2.0.0.pre8 lib/hobo_rapid/previous_uri_filter.rb
hobo_rapid-2.0.0.pre7 lib/hobo_rapid/previous_uri_filter.rb