class SinatraAdmin::Register::Custom
Public Instance Methods
generate!(&block)
click to toggle source
# File lib/sinatra-admin/register/custom.rb, line 4 def generate!(&block) raise RegistrationException, "You should pass a block in order to register #{resource_constant} custom resource" unless block_given? app.namespace("/#{route}", &block) end