Skip to content

Silent errors #251

Closed
Closed
@alepore

Description

@alepore

With some gems like Spree we use lots of "decorators" files under app/models, which are not ruby classes but simple Model.class_eval do ... files.
Annotate gives lots of verbose warning like:

Unable to annotate app/models/spree/order_decorator.rb: cannot load a model from app/models/spree/order_decorator.rb
Unable to annotate app/models/spree/page_decorator.rb: cannot load a model from app/models/spree/page_decorator.rb
Unable to annotate app/models/spree/payment_method_decorator.rb: cannot load a model from app/models/spree/payment_method_decorator.rb
Unable to annotate app/models/spree/product_decorator.rb: cannot load a model from app/models/spree/product_decorator.rb
Unable to annotate app/models/spree/products_container_decorator.rb: cannot load a model from app/models/spree/products_container_decorator.rb
Unable to annotate app/models/spree/taxon_decorator.rb: cannot load a model from app/models/spree/taxon_decorator.rb
Unable to annotate app/models/spree/variant_decorator.rb: cannot load a model from app/models/spree/variant_decorator.rb

That's pretty spammy...

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions