Browse Source

fix #129 record creation, only audit creates on records - too much data

pull/1/head
Claudius Nicolae 12 years ago
parent
commit
3b211788ba
  1. 3
      app/models/record.rb

3
app/models/record.rb

@ -1,6 +1,6 @@
class Record < ActiveRecord::Base
stampable
audited
audited on: [:create]
belongs_to :domain, :inverse_of => :records
belongs_to :user, :inverse_of => :records
@ -8,6 +8,7 @@ class Record < ActiveRecord::Base
cattr_reader :types
@@types = %w(SOA NS A MX TXT CNAME AAAA SRV)
attr_accessible :name, :content, :ttl, :prio
validates :domain, :name, :presence => true
validates :type, :inclusion => {:in => @@types, :message => "Unknown record type"}

Loading…
Cancel
Save