huacnlee / rails-settings-cached

Global settings for your Rails application.
Other
1.06k stars 202 forks source link

get_all settings method disappeared #167

Closed gfalasca closed 5 years ago

gfalasca commented 5 years ago

Hi, not sure it is an issue, but cannot find the way to get_all the settings, included the ones declared through the field method. In old releases I see that the Base class was subclassing the Settings class which contained the get_all method. Now the Base class just extends ActiveRecord::Base.

Thanks

huacnlee commented 5 years ago

In rails-settings-cached 2.x, you just need use the methods of the ActiveRecord.

Setting.all

Setting.where(thing_type: nil).all
gfalasca commented 5 years ago

Found, thx