Method: Trust::Controller::Resource#instance_name

Defined in:
lib/trust/controller/resource.rb

#instance_nameObject

Returns the name of the instance for the resource

Example

# in AccountsController
resource.instance_name  # => :account


214
215
216
# File 'lib/trust/controller/resource.rb', line 214

def instance_name
  info.name
end