slate-studio / activeadmin-settings

Settings backend for activeadmin based projects - pretty handy tool.
88 stars 65 forks source link

Accessing settings_value from a model #15

Open creativetechnologist opened 11 years ago

creativetechnologist commented 11 years ago

I'm trying to access settings_value() in an activerecord model but it's not found, is there a way to do this?

Very nice work by the way, the gem is working well in my application.

rlupiichuk commented 11 years ago

Yes, it's pretty easy. Just include ActiveadminSettings::Helpers in your model and you are ready to go.

creativetechnologist commented 11 years ago

Perfect, thanks very much indeed. Whilst I'm here, is there anyway to remove the default admin tab?