benoit torrent

Joined

1,720 Experience
17 Lessons Completed
0 Questions Solved

Activity

Posted in Dynamic Single Table Inheritance with Rails Discussion

I miss something because when I do for example:

MentionNotifier.last

the error:

/scoping.rb:127:in value_for': undefined methodname' for nil:NilClass (NoMethodError)

      scope_type[klass.name]
                      ^^^^^

Or MentionNotifier.new

error:

/model_schema.rb:560:in load_schema': undefined methodsynchronize' for nil:NilClass (NoMethodError)

    @load_schema_monitor.synchronize do
                        ^^^^^^^^^^^^

someone can pointing my mistake?

At 2:34 the migration don't have foreign_key: true for t.belongs_to :event, null: false. What impact that make to not mention that?