Skip to content

Rails.application.assets return nil when config.assets.compile = false #257

@thaichors3000

Description

@thaichors3000

With sprockets-rails 3.0.0. When we set
config.assets.compile = true
we get
Rails.application.assets #=> nil

With this it causes default_load_path to error. undefined method '#path' for NilClass. https://github.com/Compass/compass-rails/blob/master/lib/compass-rails/configuration.rb#L43

Because this https://github.com/Compass/compass-rails/blob/master/lib/compass-rails.rb#L37 returns nil.

Does anybody know any workaround this for now?

similar issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions