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 (*args) = args. args = (args.empty? ? [:author] : args) << belongs_to_user *args end |