MCPcopy Create free account

hub / github.com/banker/newsmonger / functions

Functions97 in github.com/banker/newsmonger

↓ 17 callersMethodnew
app/controllers/users_controller.rb:4
↓ 6 callersFunctione
()
public/javascripts/jquery-1.3.2.min.js:12
↓ 6 callersFunctiont
(F,E)
public/javascripts/jquery-1.3.2.min.js:19
↓ 5 callersFunctionF
(Y,U,ab,ac)
public/javascripts/jquery-1.3.2.min.js:19
↓ 5 callersFunctionQ
(T)
public/javascripts/jquery-1.3.2.min.js:19
↓ 5 callersMethodauthenticate
(email, secret)
app/models/user.rb:17
↓ 5 callersMethodupvote
(story_id, user_id)
app/models/story.rb:39
↓ 4 callersFunctionE
(U,T)
public/javascripts/jquery-1.3.2.min.js:19
↓ 4 callersFunctionI
()
public/javascripts/jquery-1.3.2.min.js:12
↓ 4 callersFunctionJ
(T,aa)
public/javascripts/jquery-1.3.2.min.js:19
↓ 4 callersFunctionj
(E,F)
public/javascripts/jquery-1.3.2.min.js:12
↓ 3 callersFunctionH
(I,J)
public/javascripts/jquery-1.3.2.min.js:19
↓ 3 callersFunctionL
()
public/javascripts/jquery-1.3.2.min.js:19
↓ 3 callersMethodcurrent_user
Accesses the current user from the session. Future calls avoid the database because nil is not equal to false.
lib/authentication.rb:18
↓ 3 callersMethodpassword
app/models/user.rb:35
↓ 3 callersMethodrun
config/boot.rb:37
↓ 2 callersFunctionK
(N,O)
public/javascripts/jquery-1.3.2.min.js:12
↓ 2 callersFunctionN
(X)
public/javascripts/jquery-1.3.2.min.js:19
↓ 2 callersMethodcreate
app/controllers/users_controller.rb:9
↓ 2 callersMethodembedded_callbacks_on_create
lib/embedded_document_callbacks.rb:20
↓ 2 callersMethodfind_by_slug
(slug)
app/models/story.rb:31
↓ 2 callersFunctioni
(F,E)
public/javascripts/jquery-1.3.2.min.js:19
↓ 2 callersMethodroot?
Is this a root node?
app/models/comment.rb:68
↓ 2 callersMethodthreaded_with_field
Return an array of comments, threaded, from highest to lowest votes. Sorts by votes descending by default, but could use any other field. If you want
app/models/comment.rb:27
↓ 1 callersFunctionB
()
public/javascripts/jquery-1.3.2.min.js:19
↓ 1 callersMethodauthenticate
Filter method to enforce a sign_in requirement. To require sign_ins for all actions, use this in your controllers: before_filter :sign_in_required
lib/authentication.rb:59
↓ 1 callersMethodauthenticated?
(secret)
app/models/user.rb:31
↓ 1 callersMethodboot!
config/boot.rb:8
↓ 1 callersMethodgem_version
config/boot.rb:74
↓ 1 callersMethodindex
app/controllers/stories_controller.rb:9
↓ 1 callersMethodload_rubygems
config/boot.rb:84
↓ 1 callersMethodnew
app/controllers/stories_controller.rb:5
↓ 1 callersMethodnew
app/controllers/sessions_controller.rb:6
↓ 1 callersMethodpassword_required?
app/models/user.rb:55
↓ 1 callersMethodset_password_code!
app/models/user.rb:59
↓ 1 callersMethodshow
app/controllers/stories_controller.rb:14
FunctionP
(U,Z,Y,ad,aa,ac)
public/javascripts/jquery-1.3.2.min.js:19
FunctionS
(U,Z,Y,ad,aa,ac)
public/javascripts/jquery-1.3.2.min.js:19
Functiona
(F)
public/javascripts/jquery-1.3.2.min.js:19
Methodaccess_denied
Redirect as appropriate when an access request fails. The default action is to redirect to the sign_in screen. Override this method in your controll
lib/authentication.rb:71
Methodassemble
Used by Comment#threaded_with_field to assemble the results.
app/models/comment.rb:45
Methodauthorized?
Check if the user is authorized Override this method in your controllers if you want to restrict access to only a few actions or if you want to check
lib/authentication.rb:41
Methodauto_upvote
Comment owner automatically upvotes.
app/models/comment.rb:80
Methodbefore_create
(*methods)
lib/embedded_document_callbacks.rb:15
Methodbooted?
config/boot.rb:15
Functionc
(H)
public/javascripts/jquery-1.3.2.min.js:19
Methodcalculate_relevance
Stories are displayed in order of relevance. Relevance will eventually reach zero, at which point, stories are displayed in order of date posted and v
app/models/story.rb:59
Methodconvert_to_slug
Create a slug from the title. From Sluggable Finder: http://github.com/ismasan/sluggable-finder/
app/models/story.rb:71
Methodcreate
app/controllers/stories_controller.rb:19
Methodcreate
app/controllers/sessions_controller.rb:12
Methodcreate
app/controllers/comments_controller.rb:9
Methodcreate_slug
Note: this slug creation code is vulnerable to race conditions. Refactoring forthcoming.
app/models/story.rb:82
Methodcurrent_user=
Store the given user id in the session.
lib/authentication.rb:23
Methoddestroy
app/controllers/sessions_controller.rb:23
Methodemail=
(new_email)
app/models/user.rb:50
FunctionhandleReply
()
public/javascripts/application.js:4
Methodincluded
Inclusion hook to make #current_user and #signed_in? available as ActionView helper methods.
lib/authentication.rb:6
Methodincluded
(base)
lib/embedded_document_callbacks.rb:4
Methodincrement_story_comment_count
app/models/comment.rb:84
Methodindex
app/controllers/comments_controller.rb:5
Methodinherited
Make sure that each test case has a teardown method to clear the db after each test.
test/test_helper.rb:20
Functionk
()
public/javascripts/jquery-1.3.2.min.js:19
Methodload_initializer
config/boot.rb:44
Methodload_initializer
config/boot.rb:52
Methodload_rails_gem
config/boot.rb:58
Methodlogin_required
app/controllers/application_controller.rb:15
Methodparse_gem_version
(text)
config/boot.rb:97
Methodpassword=
(value)
app/models/user.rb:43
Methodpick_boot
config/boot.rb:19
Methodpreinitialize
config/boot.rb:27
Methodpreinitializer_path
config/boot.rb:31
Methodread_environment_rb
config/boot.rb:102
Methodredirect_back_or_default
Redirect to the URI stored by the most recent store_location call or to the passed default. Set an appropriately modified after_filter :store_location
lib/authentication.rb:96
Methodrubygems_version
config/boot.rb:70
Methodsave_with_callbacks
lib/embedded_document_callbacks.rb:26
Methodset_path
Store the comment's path.
app/models/comment.rb:89
Methodshould_be_signed_in_as
(&block)
test/test_helper.rb:29
Methodshould_not_be_signed_in
test/test_helper.rb:39
Methodsign_in_from_basic_auth
Called from #current_user. Now, attempt to sign_in by basic authentication information.
lib/authentication.rb:109
Methodsign_in_from_session
Called from #current_user. First attempt to sign_in by the user id stored in the session.
lib/authentication.rb:102
Methodsign_out_keeping_session!
This is ususally what you want; resetting the session willy-nilly wreaks havoc with forgery protection, and is only strictly necessary on sign_in. How
lib/authentication.rb:118
Methodsign_out_killing_session!
The session should only be reset at the tail end of a form POST -- otherwise the request forgery protection fails. It's only really necessary when you
lib/authentication.rb:128
Methodsigned_in?
Returns true or false if the user is signed in. Preloads @current_user with the user model if they're signed in.
lib/authentication.rb:12
Methodstore_location
Store the URI of the current request in the session. We can return to this location by calling #redirect_back_or_default.
lib/authentication.rb:88
Methodstore_user_data
Cache username and upvote.
app/models/story.rb:64
Methodteardown
test/test_helper.rb:12
Methodtest_homepage
test/performance/browsing_test.rb:6
Methodto_param
app/models/story.rb:35
Functionu
()
public/javascripts/jquery-1.3.2.min.js:19
Methodupvote
Uses the class method of upvote to fire and forget.
app/controllers/stories_controller.rb:30
Methodupvote
app/controllers/comments_controller.rb:16
Methodupvote
Upvote this comment.
app/models/comment.rb:59
FunctionupvoteComment
()
public/javascripts/application.js:12
FunctionupvoteStory
()
public/javascripts/application.js:22
Methoduser=
(user)
app/models/comment.rb:72
Methodvendor_rails?
config/boot.rb:23
Functionz
(E,F)
public/javascripts/jquery-1.3.2.min.js:12