Sha256: 69fe12dfa0953eb6f51e0430b19d742607e32617329d366f123676b8e39ef5af
Contents?: true
Size: 518 Bytes
Versions: 1
Compression:
Stored size: 518 Bytes
Contents
module Para module Plugins class Routes attr_reader :router def initialize(router) @router = router end def plugin(identifier, &block) # Store router reference in closure to allow accessing it from # inside the below block router = self.router router.instance_eval do namespace :admin do scope module: :acl do router.instance_eval(&block) end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
para-0.5.0 | lib/para/plugins/routes.rb |