Module: AAN

Defined in:
lib/a_a_n/association_as_name.rb,
lib/a_a_n.rb,
lib/a_a_n/keeper.rb,
lib/a_a_n/version.rb

Overview

acts_as_aan do

    [ [:current_university, 'University', :name],
      [:home_country, 'Country', :name]]
  end

  attr_accessible :home_country_name, :current_university_name

  validates :home_country_name, :presence => true
  validates :current_university_name, :presence => true
end

Defined Under Namespace

Modules: AssociationAsName, Keeper

Constant Summary collapse

VERSION =
File.read(File.expand_path("./../../../VERSION", __FILE__))