lib/grape-swagger/entity/parser.rb in grape-swagger-entity-0.2.0 vs lib/grape-swagger/entity/parser.rb in grape-swagger-entity-0.2.1

- old
+ new

@@ -50,10 +50,13 @@ items: memo.delete(entity_name) } end end - memo[entity_name][:description] = documentation[:desc] if documentation && documentation[:desc] + if documentation + memo[entity_name][:read_only] = documentation[:read_only].to_s == 'true' if documentation[:read_only] + memo[entity_name][:description] = documentation[:desc] if documentation[:desc] + end end end def model_from(entity_options) model = entity_options[:using] if entity_options[:using].present?