config/routes.rb in ecm_courses2-0.0.1 vs config/routes.rb in ecm_courses2-0.1.0

- old
+ new

@@ -1,22 +1,12 @@ Ecm::Courses::Engine.routes.draw do - # options.reverse_merge!( - # { - # :course_category_actions => [:index, :show], - # :course_date_actions => [:index, :show], - # :course_actions => [:calendar, :index, :show] - # } - # ) localized do - resources :course_categories # , :only => options[:course_category_actions], :controller => 'ecm/courses/course_categories' - resources :courses do # , :only => options[:course_actions], :controller => 'ecm/courses/courses' do + resources :course_categories, only: [:index, :show] + resources :courses, only: [:show] do member do - # if options[:course_actions].include?(:calendar) - get "calendar", action: :calendar - get "calendar/:year/:month", action: :calendar - # end + get "calendar", action: :calendar + get "calendar/:year/:month", action: :calendar end end - - resources :course_dates # , only: options[:course_date_actions] #, controller: 'ecm/courses/course_dates' + resources :course_dates, only: [:show] end end