Skip to content

Rails app gems unaware of Rails.application in config files; is nilΒ #3

Open
@umdstu

Description

@umdstu

After implementing this gem and the required changes, I verified everything worked. I then added a custom gem to the Gemfile that happens to load one of the config/*.yml files. As expected, the yml file has
<%= Rails.application.secrets.key_name %>

but when the gem tries to load the yml, It errors:

undefined method  `secrets' for nil:NilClass (NoMethodError) 

Is there a way to make the gem aware of Rails.application?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions