Sha256: 9a5603d8cd9a343ae4e2134ddb69a94a9c7499f5aa59ebc57cf5837e5a53df91

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

package <%= places_package %>;

import <%= gwt_rails_package %>.places.RestfulAction;

import <%= managed_package %>.ActivityFactory;
import <%= models_package %>.<%= class_name %>;
import <%= base_package %>.ActivityPlace;

import com.google.gwt.activity.shared.Activity;

public class <%= class_name %>Place extends ActivityPlace<<%= class_name %>> {
    
    public Activity create(ActivityFactory factory){
        return factory.create(this);
    }
    
    public <%= class_name %>Place(RestfulAction restfulAction) {
        super(restfulAction, "<%= table_name %>");
    }

    public <%= class_name %>Place(<%= class_name %> model, RestfulAction restfulAction) {
        super(<% unless options[:singleton] -%>model.getId(), <% end -%>model, restfulAction, "<%= table_name %>");
    }

    public <%= class_name %>Place(int id, RestfulAction restfulAction) {
        super(id, restfulAction, "<%= table_name %>");
    }    
    
    public <%= class_name %>Place(String id, RestfulAction restfulAction) {
        super(id, restfulAction, "<%= table_name %>");
    }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
resty-generators-0.6.0 lib/generators/resty/templates/Place.java