Class: Dcmgr::Web::Base
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- Dcmgr::Web::Base
- Defined in:
- lib/dcmgr/web/base.rb
Class Method Summary collapse
Class Method Details
.public_crud(model) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/dcmgr/web/base.rb', line 9 def self.public_crud model model.actions {|action, pattern, proc| Dcmgr::logger.debug "REGISTER: %s %s" % [action, pattern] self.send action, pattern, &proc } end |