Sha256: c7e86c08d19c0d45a54866963479cff842a4bcb49954705ba629952a5a287fe6

Contents?: true

Size: 266 Bytes

Versions: 7

Compression:

Stored size: 266 Bytes

Contents

# frozen_string_literal: true
class Project < ActiveRecord::Base
  acts_as_resource parent_as: :resource
  belongs_to :resource
  has_one :status

  after_create :create_status

  def create_status
    Status.create(project: self, name: 'Monarchy is OK!')
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
monarchy-2.1.0 dummy/app/models/project.rb
monarchy-2.0.8 dummy/app/models/project.rb
monarchy-2.0.7 dummy/app/models/project.rb
monarchy-2.0.6 dummy/app/models/project.rb
monarchy-2.0.5 dummy/app/models/project.rb
monarchy-2.0.4 dummy/app/models/project.rb
monarchy-2.0.0.pre.beta.1 dummy/app/models/project.rb