Sha256: b337faf6f96587c5ee361d407314adb8569331502bc89997a5d233f885641b70

Contents?: true

Size: 317 Bytes

Versions: 14

Compression:

Stored size: 317 Bytes

Contents

class PeakFlowUtils::Handler < PeakFlowUtils::ApplicationRecord
  has_many :groups, dependent: :destroy
  has_many :handler_texts, dependent: :destroy

  validates :name, presence: true

  def at_handler
    @at_handler ||= PeakFlowUtils::HandlerHelper.find(identifier)
  end

  def to_param
    identifier
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
peak_flow_utils-0.1.19 lib/peak_flow_utils/models/handler.rb
peak_flow_utils-0.1.18 lib/peak_flow_utils/models/handler.rb
peak_flow_utils-0.1.17 lib/peak_flow_utils/models/handler.rb
peak_flow_utils-0.1.16 lib/peak_flow_utils/models/handler.rb
peak_flow_utils-0.1.15 lib/peak_flow_utils/models/handler.rb
peak_flow_utils-0.1.14 lib/peak_flow_utils/models/handler.rb
peak_flow_utils-0.1.13 lib/peak_flow_utils/models/handler.rb
peak_flow_utils-0.1.12 lib/peak_flow_utils/models/handler.rb
peak_flow_utils-0.1.11 app/models/peak_flow_utils/handler.rb
peak_flow_utils-0.1.10 app/models/peak_flow_utils/handler.rb
peak_flow_utils-0.1.9 app/models/peak_flow_utils/handler.rb
peak_flow_utils-0.1.8 app/models/peak_flow_utils/handler.rb
peak_flow_utils-0.1.7 app/models/peak_flow_utils/handler.rb
peak_flow_utils-0.1.6 app/models/peak_flow_utils/handler.rb