Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix spelling mistake (unkown => unknown)

  • Loading branch information...
commit 2698ea604cd5f0f78d0be954c3eb980d0ea7c1b1 1 parent 0891af3
@anthonybatchelor-examtime authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/ancestry/class_methods.rb
  2. +1 −1  lib/ancestry/locales/en.yml
View
2  lib/ancestry/class_methods.rb
@@ -12,7 +12,7 @@ def scope_depth depth_options, depth
if [:before_depth, :to_depth, :at_depth, :from_depth, :after_depth].include? scope_name
scope.send scope_name, depth + relative_depth
else
- raise Ancestry::AncestryException.new(I18n.t("ancestry.unkown_depth_option", {:scope_name => scope_name}))
+ raise Ancestry::AncestryException.new(I18n.t("ancestry.unknown_depth_option", {:scope_name => scope_name}))
end
end
end
View
2  lib/ancestry/locales/en.yml
@@ -1,6 +1,6 @@
en:
ancestry:
- unkown_depth_option: "Unknown depth option: %{scope_name}."
+ unknown_depth_option: "Unknown depth option: %{scope_name}."
invalid_orphan_strategy: "Invalid orphan strategy, valid ones are :rootify, :adopt, :restrict and :destroy."
invalid_ancestry_column: "Invalid format for ancestry column of node %{node_id}: %{ancestry_column}."
reference_nonexistent_node: "Reference to nonexistent node in node %{node_id}: %{ancestor_id}."
Please sign in to comment.
Something went wrong with that request. Please try again.