Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: b8e6a068af
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (18 sloc) 0.663 kb
#import "ObjectiveResource.h"
@interface <%= file_name.camelize %> : NSObject {
<%- file_name.camelize.constantize.columns.each do |col| -%>
<%- unless col.name == "id" -%>
<%=objc_type col.type%> *<%= col.name.camelize(:lower) -%>;
<%- else -%>
<%=objc_type col.type%> *<%= file_name.camelize(:lower) -%>Id;
<%- end -%>
<% end %>
}
<%- file_name.camelize.constantize.columns.each do |col| -%>
<%- unless col.name == "id" -%>
@property (nonatomic, retain) <%=objc_type col.sql_type%> *<%= col.name.camelize(:lower) -%>;
<%- else -%>
@property (nonatomic, retain) <%=objc_type col.sql_type%> *<%= file_name.camelize(:lower) -%>Id;
<%- end -%>
<% end %>
@end
Jump to Line
Something went wrong with that request. Please try again.