Sha256: fe99c49aca045acdd21f73fbde578308911549c5813783e2394d4617a5cc9a6b

Contents?: true

Size: 184 Bytes

Versions: 5

Compression:

Stored size: 184 Bytes

Contents

class RedirectPage < Page
  respond_to :get do
    with :html do
      if url?
        response.redirect url
      else
        response.redirect page.path
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yodel-0.0.7 lib/yodel/models/pages/redirect_page.rb
yodel-0.0.4 lib/yodel/models/pages/redirect_page.rb
yodel-0.0.3 lib/yodel/models/pages/redirect_page.rb
yodel-0.0.2 lib/yodel/models/pages/redirect_page.rb
yodel-0.0.1 lib/yodel/models/pages/redirect_page.rb