Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix for NSNumber

  • Loading branch information...
commit f3a9e40f017293ecb00d5efd28f85bab408f13fc 1 parent 2bdbb9a
@twoism authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 generators/objectify/templates/model.h
View
4 generators/objectify/templates/model.h
@@ -3,7 +3,7 @@
def objc_type type
case
when type.match(/^int/)
- "NSInteger"
+ "NSNumber"
when type.match(/varchar/)
"NSString"
when type.match(/tinyint/)
@@ -23,7 +23,7 @@ end
<%- unless col.name == "id" -%>
<%=objc_type col.sql_type%> *<%= col.name.camelize(:lower) -%>;
<%- else -%>
- NSString *<%= file_name.camelize(:lower) -%>Id;
+ <%=objc_type col.sql_type%> *<%= file_name.camelize(:lower) -%>Id;
<%- end -%>
<% end %>
}
Please sign in to comment.
Something went wrong with that request. Please try again.