lib/grape_resource.rb in grape_resource-0.1.3 vs lib/grape_resource.rb in grape_resource-0.1.5
- old
+ new
@@ -6,6 +6,9 @@
extend GrapeResource::Configuration
define_setting :directory, "controllers/API/v1/"
define_setting :class_name_prefix, "API::V1"
+ define_setting :entry_point_routes, "# Routes entry point"
+ define_setting :success_formatter, "formatter :json, ::API::SuccessFormatter"
+ define_setting :error_formatter, "error_formatter :json, ::API::ErrorFormatter"
end