Update preferences.rb

Change named_scope to socpe