Method: ActiveRecord::BelongsToAuthor::ActMacro#belongs_to_author

Defined in:
lib/active_record/belongs_to_author.rb

#belongs_to_author(*args) ⇒ Object



41
42
43
44
45
# File 'lib/active_record/belongs_to_author.rb', line 41

def belongs_to_author(*args)
  options = args.extract_options!
  args = (args.empty? ? [:author] : args) << options
  belongs_to_user *args
end