module MnoEnterprise::DatabaseExtendable

TODO: specs

Public Instance Methods

database_extendable(*fields) click to toggle source
# File lib/mno_enterprise/database_extendable.rb, line 9
def database_extendable(*fields)
  fields.each do |field|
    delegate field.to_sym, "#{field}=".to_sym, to: :extension
  end

  after_save :save_extensions
  after_destroy :delete_extension

  include MnoEnterprise::DatabaseExtendable::InstanceMethods
end