Sha256: e318438dba7d9a43e7b9b156a60f7db648f30c5ca3ff66e3f6a17b99d7c57088
Contents?: true
Size: 348 Bytes
Versions: 10
Compression:
Stored size: 348 Bytes
Contents
class MerbAdmin::Application < Merb::Controller controller_for_slice before :set_model, :exclude => "index" def set_model @model_name = params[:model_name].to_s.camel_case.singularize begin @model = eval(@model_name) rescue StandardError raise NotFound end @properties = @model.properties.to_a end end
Version data entries
10 entries across 10 versions & 1 rubygems