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.6.9 lib/express_admin/routes.rb
express_admin-1.6.8 lib/express_admin/routes.rb
express_admin-1.6.7 lib/express_admin/routes.rb
express_admin-1.6.4 lib/express_admin/routes.rb
express_admin-1.6.3 lib/express_admin/routes.rb
express_admin-1.6.2 lib/express_admin/routes.rb
express_admin-1.6.1 lib/express_admin/routes.rb
express_admin-1.6.0 lib/express_admin/routes.rb
express_admin-1.5.0 lib/express_admin/routes.rb
express_admin-1.4.11 lib/express_admin/routes.rb
express_admin-1.4.10 lib/express_admin/routes.rb
express_admin-1.4.9 lib/express_admin/routes.rb
express_admin-1.4.8 lib/express_admin/routes.rb
express_admin-1.4.7 lib/express_admin/routes.rb
express_admin-1.4.6 lib/express_admin/routes.rb
express_admin-1.4.5 lib/express_admin/routes.rb
express_admin-1.4.4 lib/express_admin/routes.rb
express_admin-1.4.3 lib/express_admin/routes.rb
express_admin-1.4.2 lib/express_admin/routes.rb
express_admin-1.4.1 lib/express_admin/routes.rb