Skip to content
This repository has been archived by the owner on Jun 30, 2018. It is now read-only.

Remove unnecessary constantize #901

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions lib/tire/tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ def import_model(index, klass, params)

next if model_filename.match(/^concerns\//i) # Skip concerns/ folder

klass = model_filename.camelize.constantize

begin
klass = model_filename.camelize.constantize
rescue NameError
Expand Down