acts_as_singleton
acts_as_singleton copied to clipboard
Rails 4.1.10 & acts_as_singleton 0.0.8 - NoMethodError: private method `find_generated_attribute_method'
Rails 4.1.10 & acts_as_singleton 0.0.8
I'm getting the following error when calling an instance:
rails c test
Loading test environment (Rails 4.1.10)
irb: warn: can't alias context from irb_context.
2.1.5 :001 > GlobalSetting.instance
GlobalSetting Load (2.8ms) SELECT "global_settings".* FROM "global_settings" ORDER BY "global_settings"."id" ASC LIMIT 1
(1.1ms) BEGIN
(0.3ms) ROLLBACK
NoMethodError: private method `find_generated_attribute_method' called for #<Class:0x007fc79903bea8>
Ahh, I see you've merged a pull request that might solve this. Will try with master and see whether it fixes it.
Yep, that worked. So commit 68291d7de759791a506b9a5dad5c71826124d5e8 on Rails 4.1 works. Perhaps warrants a new release?