Sha256: 8e181ce6c3e925edeac51a624b7c8d612ff2c88089797e69b5931fb2cbfa56e1

Contents?: true

Size: 284 Bytes

Versions: 1

Compression:

Stored size: 284 Bytes

Contents

module Cavy
  module PagesHelper

    def pages_path(page)
      if page == Cavy.root
        I18n.available_locales.count > 1 ? "/#{params[:locale]}/" : '/'
      else
        I18n.available_locales.count > 1 ? "/#{params[:locale]}/#{page}" : "/#{page}"
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cavy-0.1.0.beta1 app/helpers/cavy/pages_helper.rb