Sha256: ebd7316902bd769f45b9ad817eaa6199c44e394d24ec30ee381f18d3e1105da7

Contents?: true

Size: 177 Bytes

Versions: 5

Compression:

Stored size: 177 Bytes

Contents

module Blacksand
  module PageHelper
    def url_for_page(page)
      if page.new_record?
        pages_path(page)
      else
        page_path(page)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blacksand-2.5.0 app/helpers/blacksand/page_helper.rb
blacksand-2.4.1 app/helpers/blacksand/page_helper.rb
blacksand-2.4.0 app/helpers/blacksand/page_helper.rb
blacksand-2.3.0 app/helpers/blacksand/page_helper.rb
blacksand-2.2.2.1 app/helpers/blacksand/page_helper.rb