Sha256: a843250366aca4e4035895de0a328f5a96fcf9f54151dcc944e536e329c5b398

Contents?: true

Size: 471 Bytes

Versions: 10

Compression:

Stored size: 471 Bytes

Contents

module ActiveTracker
  class Router
    def self.load
      Rails.application.routes.draw do
        namespace ActiveTracker::Configuration.mountpoint, as: "active_tracker", module: "active_tracker" do
          root 'dashboard#index'

          ActiveTracker::Configuration.plugins.each do |plugin|
            resources plugin.resources_name
          end
        end
      end
      Rails.application.routes.instance_variable_set(:@url_helpers, nil)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
activetracker-0.4.9 lib/active_tracker/router.rb
activetracker-0.4.8 lib/active_tracker/router.rb
activetracker-0.4.7 lib/active_tracker/router.rb
activetracker-0.4.6 lib/active_tracker/router.rb
activetracker-0.4.5 lib/active_tracker/router.rb
activetracker-0.4.4 lib/active_tracker/router.rb
activetracker-0.4.3 lib/active_tracker/router.rb
activetracker-0.4.2 lib/active_tracker/router.rb
activetracker-0.4.1 lib/active_tracker/router.rb
activetracker-0.4.0 lib/active_tracker/router.rb