Skip to content

Commit

Permalink
Prefer NoMethodError over NotImplementedError (#663)
Browse files Browse the repository at this point in the history
  • Loading branch information
tak1n authored Oct 24, 2022
1 parent 4c8982e commit ec8931f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/hanami/model/plugins/timestamps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def [](value)
# @since 0.7.0
# @api private
def _touch(_value)
raise NotImplementedError
raise NoMethodError
end

private
Expand Down
4 changes: 2 additions & 2 deletions spec/support/database/strategies/abstract.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ def database_name
end

def load_dependencies
raise NotImplementedError
raise NoMethodError
end

def export_env
ENV["HANAMI_DATABASE_NAME"] = database_name
end

def create_database
raise NotImplementedError
raise NoMethodError
end

def configure
Expand Down

0 comments on commit ec8931f

Please sign in to comment.