Created
September 9, 2008 22:00
-
-
Save masterkain/9777 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
has_many :documents, :through => :contributions, :select => "documents.*, join_table.rich_attribute" do | |
def push_with_attributes(document, rich_join_attrs) | |
Contribution.send(:with_scope, :create => rich_join_attrs) { self << document } | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment