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