Method: ActsAsGraphObject::Base::InstanceMethods#action
- Defined in:
- lib/acts_as_graph_object/base.rb
#action(name = '') ⇒ Object
helper for sending custom actions, e.g. (using Koala): user.put_connections(‘me’, action(‘watch’), movie: @movie.url)
28 29 30 |
# File 'lib/acts_as_graph_object/base.rb', line 28 def action(name = '') [configuration.namespace, name].join(':') unless name.empty? end |