lib/eol/anonymous_user.rb
# Anonymous users are LANGUAGE-SPECIFIC.
Anonymous users are LANGUAGE-SPECIFIC.
Anonymous users are LANGUAGE - SPECIFIC .
def defaults
      @defaults ||=
        Rails.cache.fetch("anonymous/#{@lang}") do
          {:active => true,
          :active? => true,
          :agent => nil,
          :agreed_with_terms => true, 
          :all_collections => [],
          :assistant_curator? => false,
          :blank? => true,
          :can? => false,
          :can_create? => false,
          :can_delete? => false,
          :can_edit_collection? => false,
          :can_manage_community? => false,
          :can_update? => false,
          :content_page_cache_str => 'anonymous',
          :credentials => '',
          :curator_scope => '',
          :default_language? => true,
          :email => '',
          :full_name => I18n.t(:anonymous_user_full_name),
          :given_name => I18n.t(:anonymous_user_given_name),
          :ignored_data_object? => false,
          :is_admin? => false,
          :is_curator? => false,
          :log_activity => nil,
          :logo_url => nil,
          :member_of => false,
          :members => [],
          :min_curator_level? => false,
          :nil? => true,
          :save => false,
          :short_name => I18n.t(:anonymous_user_given_name),
          :tag_line => I18n.t(:anonymous_user_tag_line),
          :username => I18n.t(:anonymous_user_given_name),
          :vetted => false,
          :visibility_types => ['visible'],
          :vetted_types => ['trusted', 'unreviewed'],
          :news_in_preferred_language => false,
          :watch_collection => nil}
        end
    end
def defaults @defaults ||= Rails . cache . fetch ( "anonymous/#{@lang}" ) do { :active => true , :active? => true , :agent => nil , :agreed_with_terms => true , :all_collections => [ ] , :assistant_curator? => false , :blank? => true , :can? => false , :can_create? => false , :can_delete? => false , :can_edit_collection? => false , :can_manage_community? => false , :can_update? => false , :content_page_cache_str => 'anonymous' , :credentials => '' , :curator_scope => '' , :default_language? => true , :email => '' , :full_name => I18n . t ( :anonymous_user_full_name ) , :given_name => I18n . t ( :anonymous_user_given_name ) , :ignored_data_object? => false , :is_admin? => false , :is_curator? => false , :log_activity => nil , :logo_url => nil , :member_of => false , :members => [ ] , :min_curator_level? => false , :nil? => true , :save => false , :short_name => I18n . t ( :anonymous_user_given_name ) , :tag_line => I18n . t ( :anonymous_user_tag_line ) , :username => I18n . t ( :anonymous_user_given_name ) , :vetted => false , :visibility_types => [ 'visible' ] , :vetted_types => [ 'trusted' , 'unreviewed' ] , :news_in_preferred_language => false , :watch_collection => nil } end end
Anonymous users are LANGUAGE-SPECIFIC.
Anonymous users are LANGUAGE - SPECIFIC .
# Because we don't want to redirect them