Class MetaController
In: app/controllers/meta_controller.rb
Parent: ApplicationController

this controller provides access to "static" pages

Methods

Public Instance methods

[Source]

    # File app/controllers/meta_controller.rb, line 50
50:   def about
51:     meta()
52:   end

[Source]

    # File app/controllers/meta_controller.rb, line 30
30:   def popup
31:     popup_partial = methods.include?(params['popup']) ? "meta/#{params['popup']}" :  params['popup']
32:     @meta_partial = popup_partial
33:     
34:     if params[:html_options]
35:       @locals = Hash.new
36:       for key, value in params[:html_options]
37:         @locals[key.to_sym] = value
38:       end
39:     end
40:         
41:     case params['popup']
42:     when 'blog'
43:       get_blog()
44:     else
45:     end
46:     
47:     render(:action => 'meta', :layout => 'popup')     
48:   end

[Source]

    # File app/controllers/meta_controller.rb, line 62
62:   def privacy_policy
63:     meta()
64:   end

[Source]

    # File app/controllers/meta_controller.rb, line 8
 8:   def summary
 9:     session_locale                                         = session[:locale].to_s
10:     last_checked_at                                        = @@summaries_updated_at[session_locale] || Time.new
11:     time_since_last_update_in_seconds                      = Time.new - last_checked_at
12:     is_time_to_update = time_since_last_update_in_seconds >= @@summaries_update_every_seconds
13:     
14:     if @@summaries[session_locale].nil? || @@summaries[session_locale].empty? || is_time_to_update
15:       @@summaries_updated_at[session_locale] = Time.new
16:       @@summaries[session_locale] = Array.new
17:       if ['production'].include?(RAILS_ENV)
18:         @@summaries[session_locale] << VocabularyList.overview
19:         @@summaries[session_locale] << Character.overview
20:         @@summaries[session_locale] << Definition.overview
21:         @@summaries[session_locale] << Word.overview
22:       end
23:       @@summaries[session_locale] << Sentence.overview
24:     end
25:     
26:     @summaries = @@summaries[session_locale]
27:     @last_updated_at = @@summaries_updated_at
28:   end

[Source]

    # File app/controllers/meta_controller.rb, line 54
54:   def support
55:     meta()
56:   end

[Source]

    # File app/controllers/meta_controller.rb, line 58
58:   def terms_of_service
59:     meta()
60:   end

[Source]

    # File app/controllers/meta_controller.rb, line 66
66:   def twitter
67:     meta()
68:   end

[Validate]