Sha256: 1ce73822458edf785e09aa2cac57fbf4ec1927a1e824c1ef7567df0cc1597bb8
Contents?: true
Size: 869 Bytes
Versions: 5
Compression:
Stored size: 869 Bytes
Contents
package <%= places_package %>; import com.google.gwt.place.shared.PlaceTokenizer; import com.google.gwt.place.shared.Prefix; import <%= gwt_rails_package %>.RestfulPlaceTokenizer; @Prefix("<% if options[:singleton] -%><%= singular_table_name %><% else -%><%= table_name %><% end -%>") public class <%= class_name %>PlaceTokenizer extends RestfulPlaceTokenizer<<%= class_name %>Place> implements PlaceTokenizer<<%= class_name %>Place> { public <%= class_name %>Place getPlace(String token) { <% if options[:singleton] -%> return new <%= class_name %>Place(toSingletonToken(token).action); <% else -%> Token t = toToken(token); if(t.identifier == null){ return new <%= class_name %>Place(t.action); } else { return new <%= class_name %>Place(t.identifier, t.action); } <% end -%> } }
Version data entries
5 entries across 5 versions & 1 rubygems