Class: GraphStarter::Model

Inherits:
Object
  • Object
show all
Includes:
Authorizable, Neo4j::ActiveNode
Defined in:
app/models/graph_starter/model.rb

Instance Method Summary collapse

Methods included from Authorizable

#set_access_levels

Instance Method Details

#authorized_properties(user) ⇒ Object



16
17
18
19
20
21
# File 'app/models/graph_starter/model.rb', line 16

def authorized_properties(user)
  require './lib/query_authorizer'
  query_authorizer = QueryAuthorizer.new(properties(:property))

  query_authorizer.authorized_pluck(:property, user)
end

#ruby_modelObject



12
13
14
# File 'app/models/graph_starter/model.rb', line 12

def ruby_model
  name.constantize
end