Class: Neo4j::MetaModel::Meta::PropertiesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Neo4j::MetaModel::Meta::PropertiesController
- Defined in:
- app/controllers/neo4j/meta_model/meta/properties_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
15 16 17 18 19 20 21 |
# File 'app/controllers/neo4j/meta_model/meta/properties_controller.rb', line 15 def create property = Property.create(property_params) create_models render json: property end |
#destroy ⇒ Object
7 8 9 10 11 12 13 |
# File 'app/controllers/neo4j/meta_model/meta/properties_controller.rb', line 7 def destroy @property.destroy create_models render json: nil end |
#update ⇒ Object
23 24 25 26 27 28 29 |
# File 'app/controllers/neo4j/meta_model/meta/properties_controller.rb', line 23 def update @property.update_attributes(property_params) create_models render json: @property end |