Sha256: 4d41f131bcd335482b9bbad5130dd5dd7d1c8e83da757892811dc9e58dac1308

Contents?: true

Size: 352 Bytes

Versions: 63

Compression:

Stored size: 352 Bytes

Contents

module ExpressAdmin
  class Routes
    def self.register(&block)
      registered_route_blocks << block
    end

    def self.registered_route_blocks
      @blocks ||= []
    end

    def self.draw(application_routes)
      registered_route_blocks.each do |route_block|
        application_routes.instance_eval(&route_block)
      end
    end
  end
end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
express_admin-1.7.16 lib/express_admin/routes.rb
express_admin-1.7.16.pre1 lib/express_admin/routes.rb
express_admin-1.7.15 lib/express_admin/routes.rb
express_admin-1.7.14 lib/express_admin/routes.rb
express_admin-1.7.13 lib/express_admin/routes.rb
express_admin-1.7.12 lib/express_admin/routes.rb
express_admin-1.7.11 lib/express_admin/routes.rb
express_admin-1.7.10 lib/express_admin/routes.rb
express_admin-1.7.9 lib/express_admin/routes.rb
express_admin-1.7.8 lib/express_admin/routes.rb
express_admin-1.7.7 lib/express_admin/routes.rb
express_admin-1.7.5 lib/express_admin/routes.rb
express_admin-1.7.4 lib/express_admin/routes.rb
express_admin-1.7.3 lib/express_admin/routes.rb
express_admin-1.7.2 lib/express_admin/routes.rb
express_admin-1.7.1 lib/express_admin/routes.rb
express_admin-1.6.13 lib/express_admin/routes.rb
express_admin-1.6.12 lib/express_admin/routes.rb
express_admin-1.6.11 lib/express_admin/routes.rb
express_admin-1.6.10 lib/express_admin/routes.rb