Skip to content

Commit

Permalink
Removed unused method SingularAssociation#check_record
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Oct 29, 2014
1 parent b7341f9 commit 31c9076
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/active_fedora/associations/singular_association.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@ def set_new_record(record)
replace(record)
end

def check_record(record)
record = record.target if Association === record
raise_on_type_mismatch(record) if record
record
end

def new_record(method, attributes)
attributes = {} #scoped.scope_for_create.merge(attributes || {})
record = @reflection.send("#{method}_association", attributes)
Expand Down

0 comments on commit 31c9076

Please sign in to comment.