[DBIx-Class-Devel] [dbsrgits/dbix-class-schema-loader] Add no_nonmoose option (#22)

Justin Baker notifications at github.com
Mon Nov 15 18:50:49 GMT 2021


@karenetheridge @smith153 If the result classes inherit from a result_base_class that is already moosified, then there is no need for MooseX::NonMoose, no?

I moosified the base class in an attempt to silence warnings like this:

```
Not inlining 'new' for MyApp::Schema::Result::Thing since it is not inheriting the default Moose::Object::new
If you are certain you don't need to inline your constructor, specify inline_constructor => 0 in your call to MyApp::Schema::Result::Thing->meta->make_immutable

```

I thought I was being clever with this (instead of adding "inline_constructor => 0" to all my result classes) but then I remembered that I shouldn't be modifying the generated classes... and here I am...

Thoughts/suggestions?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/dbsrgits/dbix-class-schema-loader/pull/22#issuecomment-969212618
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/dbix-class-devel/attachments/20211115/687b0039/attachment.htm>


More information about the DBIx-Class-Devel mailing list