Skip to content

Commit

Permalink
fix #23
Browse files Browse the repository at this point in the history
  • Loading branch information
masciugo committed Nov 4, 2019
1 parent 4422b2a commit 4d2eb40
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/genealogy/current_spouse_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module CurrentSpouseMethods

# add current spouse updating receiver and argument individuals foreign_key in a transaction
# @param [Object] spouse
# @return [Boolean]
# @return [Boolean]
def add_current_spouse(spouse)

raise_unless_current_spouse_enabled
Expand All @@ -30,7 +30,7 @@ def add_current_spouse(spouse)
end

# remove current spouse resetting receiver and argument individuals foreign_key in a transaction
# @return [Boolean]
# @return [Boolean]
def remove_current_spouse
raise_unless_current_spouse_enabled
if gclass.perform_validation_enabled
Expand Down Expand Up @@ -59,8 +59,8 @@ def ineligible_current_spouses
private

def raise_unless_current_spouse_enabled
raise FeatureNotEnabled, "Spouse tracking not enabled. Enable it with option 'current_spouse_enabled: true' for has_parents method}" unless self.class.current_spouse_enabled
raise FeatureNotEnabled, "Spouse tracking not enabled. Enable it with option 'current_spouse: true' for has_parents method}" unless self.class.current_spouse_enabled
end

end
end
end

0 comments on commit 4d2eb40

Please sign in to comment.