Sha256: a428692daf126abe41afeb20db896f16bf52a2c5383919c00ac43c4f7414d1b4

Contents?: true

Size: 341 Bytes

Versions: 8

Compression:

Stored size: 341 Bytes

Contents

module ActionDispatch::Routing
  class Mapper

    def enjoy_cms_routes(config = {})
      routes_config = {
        root_path: "home#index"
      }
      routes_config.merge!(config)

      scope module: 'enjoy' do

        if routes_config[:root_path]
          root to: routes_config[:root_path]
        end
      end

    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
enjoy_cms-0.4.1 lib/enjoy/routes.rb
enjoy_cms-0.4.0.5 lib/enjoy/routes.rb
enjoy_cms-0.4.0.4 lib/enjoy/routes.rb
enjoy_cms-0.4.0.3 lib/enjoy/routes.rb
enjoy_cms-0.4.0.2 lib/enjoy/routes.rb
enjoy_cms-0.4.0.1 lib/enjoy/routes.rb
enjoy_cms-0.4.0 lib/enjoy/routes.rb
enjoy_cms-0.4.0.beta3 lib/enjoy/routes.rb