Method: ESP::Tag.find
- Defined in:
- lib/esp/resources/tag.rb
.find(id) ⇒ Object .find(scope, options) ⇒ Object
Find a Tag by id
call-seq -> super.find(id)
50 51 52 53 54 55 56 57 |
# File 'lib/esp/resources/tag.rb', line 50 def self.find(*arguments) scope = arguments.slice!(0) = (arguments.slice!(0) || {}).with_indifferent_access return super(scope, ) if scope.is_a?(Numeric) || [:from].present? params = .fetch(:params, {}).with_indifferent_access alert_id = params.delete(:alert_id) for_alert(alert_id) end |