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

method_missing Error when using Engine gemspec add_dependency #21

Open
nugenius opened this issue Mar 20, 2014 · 1 comment
Open

method_missing Error when using Engine gemspec add_dependency #21

nugenius opened this issue Mar 20, 2014 · 1 comment
Assignees
Labels

Comments

@nugenius
Copy link

An error is produced when using validates_formatting_of with a Rails Engine by including it in the [engine].gemspec file.

# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
...
  s.add_dependency 'validates_formatting_of'
...
end

Produces

method_missing': undefined methodvalidates_formatting_of' for ....

If the gem is included through the Gemfile all runs correctly.

This is important because the dependencies for engines are supposed to be handled as if the engine is a gem and thus you should use the [engine].gemspec file.

@mdespuits
Copy link
Owner

Could you include the full backtrace?

@mdespuits mdespuits added the bug label Mar 20, 2014
@mdespuits mdespuits self-assigned this Mar 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants