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-2.0.0.b lib/express_admin/routes.rb
express_admin-2.0.0.a lib/express_admin/routes.rb
express_admin-1.8.1 lib/express_admin/routes.rb
express_admin-1.8.0 lib/express_admin/routes.rb
express_admin-1.7.32 lib/express_admin/routes.rb
express_admin-1.7.31 lib/express_admin/routes.rb
express_admin-1.7.30 lib/express_admin/routes.rb
express_admin-1.7.29 lib/express_admin/routes.rb
express_admin-1.7.28 lib/express_admin/routes.rb
express_admin-1.7.27 lib/express_admin/routes.rb
express_admin-1.7.26 lib/express_admin/routes.rb
express_admin-1.7.25 lib/express_admin/routes.rb
express_admin-1.7.24 lib/express_admin/routes.rb
express_admin-1.7.23 lib/express_admin/routes.rb
express_admin-1.7.22 lib/express_admin/routes.rb
express_admin-1.7.21 lib/express_admin/routes.rb
express_admin-1.7.20 lib/express_admin/routes.rb
express_admin-1.7.19 lib/express_admin/routes.rb
express_admin-1.7.18 lib/express_admin/routes.rb
express_admin-1.7.17 lib/express_admin/routes.rb