Module | VestalVersions::Users::VersionMethods |
In: |
lib/vestal_versions/users.rb
|
Instance methods added to VestalVersions::Version to accomodate incoming user information.
Overrides the user method created by the polymorphic belongs_to user association. If the association is absent, defaults to the user_name string column. This allows VestalVersions::Version#user to either return an ActiveRecord::Base object or a string, depending on what is sent to the +user_with_name=+ method.