Sha256: 2c546ad121be6f4f87a32c35a6fe36c21b689d5030c63e0c5aa35cd69e0a4ccf

Contents?: true

Size: 392 Bytes

Versions: 5

Compression:

Stored size: 392 Bytes

Contents

require_relative '../models/application_user'

module SecondStep::ActiveRecordAdapter
  class ApplicationUser < ActiveRecord::Base
    self.table_name = "second_step_application_users"

    prepend Models::ApplicationUser

    belongs_to :user, optional: true, polymorphic: true
    has_one :application_user_link, forgein_key: :second_step_application_user_id, dependent: :destroy
  end
end

Version data entries

5 entries across 4 versions & 1 rubygems

Version Path
second_step-0.2.0 lib/second_step/active_record_adapter/application_user.rb
second_step-0.1.4 lib/second_step/active_record_adapter/application_user.rb
second_step-0.1.3 lib/second_step/active_record_adapter/application_user.rb
second_step-0.1.2 lib/second_step/active_record_adapter/application_user.rb
second_step-0.1.2 secondstep-notify-1.0.0-osx/lib/ruby/lib/ruby/gems/2.2.0/gems/second_step-0.1.1/lib/second_step/active_record_adapter/application_user.rb