cirandas.net

ref: master

plugins/delivery/models/delivery_plugin/option.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
class DeliveryPlugin::Option < ApplicationRecord

  belongs_to :delivery_method, :class_name => 'DeliveryPlugin::Method'
  belongs_to :owner, :polymorphic => true

  validates_presence_of :delivery_method
  validates_presence_of :owner

  attr_accessible :owner_id, :owner_type, :delivery_methods, :delivery_method

end