Is there a way to declare more attributes dynamically in the DSL? Im using badgeable_active_record I added the field to the migration but if I declare it in the DSL I get the following error:
badgeable-0.5.1/lib/badgeable/railtie.rb:18:in class_eval': undefined local variable or methodpoints' for #Badgeable::Config:0x007ff82f583a70 (NameError)
I tried adding the method by extending the class locally I created /lib/badgeable/config.rb where I defined the points method but i got the following error:
badgeable-0.5.1/lib/badgeable/railtie.rb:10:in block in <class:Railtie>': undefined methodbadge_definitions=' for Badgeable::Config:Class (NoMethodError)
Is there any option for me to be able to add attributes beside the default (name, icon, description)?
Is there a way to declare more attributes dynamically in the DSL? Im using badgeable_active_record I added the field to the migration but if I declare it in the DSL I get the following error:
badgeable-0.5.1/lib/badgeable/railtie.rb:18:in
class_eval': undefined local variable or methodpoints' for #Badgeable::Config:0x007ff82f583a70 (NameError)I tried adding the method by extending the class locally I created /lib/badgeable/config.rb where I defined the points method but i got the following error:
badgeable-0.5.1/lib/badgeable/railtie.rb:10:in
block in <class:Railtie>': undefined methodbadge_definitions=' for Badgeable::Config:Class (NoMethodError)Is there any option for me to be able to add attributes beside the default (name, icon, description)?