Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing require #14816

Merged
merged 1 commit into from May 3, 2017
Merged

Add missing require #14816

merged 1 commit into from May 3, 2017

Conversation

aoby
Copy link
Contributor

@aoby aoby commented May 3, 2017

#14780 worked in development, but on staging it failed due to a missing require (dependencies are different in dev and other envs).

CC @caleybrock

@aoby aoby requested a review from ashercodeorg May 3, 2017 16:59
@@ -1,4 +1,5 @@
require_relative 'pegasus_form_errors'
require 'validates_email_format_of'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That isn't the filename, is it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, never mind, it is a gem.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

@aoby aoby May 3, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also if I get the filename wrong, then dashboard-server fails to start:

With require 'i_dont_exist':

~ bin/dashboard-server

10:05:06 [rerun] Dashboard launched
10:05:09 [rerun] Watching /Users/andrew/Code/code-dot-org/lib, /Users/andrew/Code/code-dot-org/shared/middleware, /Users/andrew/Code/code-dot-org/pegasus for **/*.{rb,ru,yml} (ignoring **/migrations/*.rb) using Darwin adapter
/Users/andrew/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in `require': cannot load such file -- i_dont_exist (LoadError)
	from /Users/andrew/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in `block in require'
	from /Users/andrew/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
	from /Users/andrew/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in `require'
	from /Users/andrew/Code/code-dot-org/lib/forms/pegasus_form_validation.rb:2:in `<top (required)>'
...

@aoby aoby merged commit a7c7224 into staging May 3, 2017
@aoby aoby deleted the pegasus-form-email-validation branch May 3, 2017 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants