public
Fork of dima/ruboss_rails_integration
Description: Ruboss Framework Rails 2.+ Integration Support.
Homepage: http://ruboss.com/framework
Clone URL: git://github.com/peterarmstrong/ruboss_rails_integration.git
use id for LABEL when first attr is Boolean
Thu Jul 24 08:42:40 -0700 2008
commit  43e2e5674f0b6a6e5b6bbf8bd75af9f3ad6cca9f
tree    ddae182e4d8be278efabf9a7acb0c0aea10d3d8a
parent  95832e7b908edfc3c4a070b4a402523446d48bb1
...
7
8
9
10
 
11
12
13
...
7
8
9
 
10
11
12
13
0
@@ -7,7 +7,7 @@ package <%= base_package %>.models {
0
   [Resource(controller="<%= resource_controller_name %>")]
0
   [Bindable]
0
   public class <%= class_name %> extends RubossModel {
0
-<% if attributes && !attributes.empty? -%>
0
+<% if attributes && !attributes.empty? && attributes[0].flex_type != "Boolean" -%>
0
     public static const LABEL:String = "<%= attributes[0].flex_name %>";
0
 <% else -%>
0
     public static const LABEL:String = "id";

Comments

    No one has commented yet.