Sha256: 86cde630b425b41d4cb5b35c0daff00ea2fe981047073c656a6b715bdbf99db2

Contents?: true

Size: 423 Bytes

Versions: 15

Compression:

Stored size: 423 Bytes

Contents

module Ecm
  module News
    class Routing
      def self.routes(router, options = {})
        options.reverse_merge!(
          item_actions: [:index, :show]
        )

        router.resources :ecm_news_items, only: options[:item_actions],
                                          controller: 'ecm/news/items' do
          router.get 'page/:page', action: :index, on: :collection
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ecm_news2-5.2.0 lib/ecm/news/routing.rb
ecm_news2-5.1.0 lib/ecm/news/routing.rb
ecm_news2-5.0.1 lib/ecm/news/routing.rb
ecm_news2-5.0.0 lib/ecm/news/routing.rb
ecm_news2-4.0.0 lib/ecm/news/routing.rb
ecm_news2-3.0.0 lib/ecm/news/routing.rb
ecm_news2-2.0.11 lib/ecm/news/routing.rb
ecm_news2-2.0.10 lib/ecm/news/routing.rb
ecm_news2-2.0.9 lib/ecm/news/routing.rb
ecm_news2-2.0.8 lib/ecm/news/routing.rb
ecm_news2-2.0.5 lib/ecm/news/routing.rb
ecm_news2-2.0.4 lib/ecm/news/routing.rb
ecm_news2-2.0.3 lib/ecm/news/routing.rb
ecm_news2-2.0.2 lib/ecm/news/routing.rb
ecm_news2-2.0.1 lib/ecm/news/routing.rb