Sha256: ba6c1cd91e89b14154f8bdd6fb7773b898de7fb0818638a84cbf17529abb32ff

Contents?: true

Size: 369 Bytes

Versions: 2

Compression:

Stored size: 369 Bytes

Contents

module ExtremeAas
  class ExtremeGrant < ActiveRecord::Base
    belongs_to :profile, :class_name => 'ExtremeProfile', :foreign_key => 'extreme_profile_id'
    belongs_to :action, :class_name => 'ExtremeAction', :foreign_key => 'extreme_action_id'
    
    after_initialize :default_values
    
    def default_values
      self.volatile ||= false
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
extreme_aas-0.0.2 app/models/extreme_aas/extreme_grant.rb
extreme_aas-0.0.1 app/models/extreme_aas/extreme_grant.rb