Commit 70ceef5
Changed files (3)
lib
lib/humble/configuration.rb
@@ -17,7 +17,7 @@ module Humble
def mapping_for(item)
@mappings.find do |mapping|
- mapping.is_for?(item)
+ mapping.matches?(item)
end
end
lib/humble/mapping_configuration.rb
@@ -13,7 +13,7 @@ module Humble
@table.persist(connection, item)
end
- def is_for?(item)
+ def matches?(item)
item == self[:type] || item.is_a?(self[:type])
end
Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- humble (0.0.1374363716)
+ humble (0.0.1374363779)
sequel
GEM