lib/ury_rapid/server/helpers/inspector.rb
# Renders an API Inspector instance using HAML.
Renders an API Inspector instance using HAML.
Renders an API Inspector instance using HAML .
def inspector_haml(inspector)
          render = ->(type) { haml(type, locals: { inspector: inspector }) }
          begin
            render.call(inspector.resource_type)
          rescue Errno::ENOENT
            render.call(inspector.resource_general_type)
          end
        end
def inspector_haml ( inspector ) render = -> ( type ) { haml ( type , locals : { inspector : inspector } ) } begin render . call ( inspector . resource_type ) rescue Errno :: ENOENT render . call ( inspector . resource_general_type ) end end
Renders an API Inspector instance using HAML.
Renders an API Inspector instance using HAML .
# There was no template for the resource type, so try something # more general.
inspector