Permalink
Browse files

Fix spelling mistake (unkown => unknown)

  • Loading branch information...
1 parent 0891af3 commit 2698ea604cd5f0f78d0be954c3eb980d0ea7c1b1 @anthonybatchelor-examtime committed Aug 23, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/ancestry/class_methods.rb
  2. +1 −1 lib/ancestry/locales/en.yml
@@ -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
@@ -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}."

0 comments on commit 2698ea6

Please sign in to comment.