Class: Neo4j::MetaModel::Meta::PropertiesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/neo4j/meta_model/meta/properties_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



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

#destroyObject



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

#updateObject



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