Skip to content

Commit

Permalink
Use defaut error message at 'fetch_model' if model type is unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloh committed Jul 22, 2020
1 parent d38aaf0 commit 293d4a8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [0.11.3] - 2020-07-22
### Changed
- Use default error message on `:fetch_model` step, at `:sequel_models` plugin, if model type cannot be determined

## [0.11.2] - 2020-07-22
### Changed
- Improve `from:` option for `:fetch_model` step, at `:sequel_models` plugin, to also accept a Sequel Dataset
Expand Down
2 changes: 0 additions & 2 deletions lib/pathway/plugins/sequel_models.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ def fetch_model(state, from: model_class, search_by: search_field, using: search
elsif from.respond_to?(:name) || from.respond_to?(:model)
from_name = (from.respond_to?(:name) ? from : from.model).name
Inflector.humanize(Inflector.underscore(Inflector.demodulize(from_name))) + ' not found'
else
'Register not found'
end

if state[to].nil? || overwrite
Expand Down
2 changes: 1 addition & 1 deletion lib/pathway/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Pathway
VERSION = '0.11.2'
VERSION = '0.11.3'
end

0 comments on commit 293d4a8

Please sign in to comment.