Created
March 13, 2015 00:09
-
-
Save bmulholland/1c28662f5f8f42242744 to your computer and use it in GitHub Desktop.
undefined method [] for nil:nilclass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# class 1 | |
class Filter < ActiveRecord::Base | |
has_many :filter_texts, class_name: "Filter::Text" | |
def initialize | |
self.filter_texts | |
end | |
end | |
# class 2 | |
class Filter::Text < ActiveRecord::Base | |
end | |
# Test | |
Filter.new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Error: