The gem can help like this :
class Book
belongs_to :author
end
book = Book.first
book.author_name #=> same as book.author.name
book.provide( :author_name, :title ) #=> will automatically map like this: { :title => book.title, :author_name => book.author.name }
Is there any gem help ?? Thanks!