Skip to content

Commit

Permalink
Fixed typo in tiled attribute and added post! shortcut method to disp…
Browse files Browse the repository at this point in the history
…atcher. [#9 state:resolved]
  • Loading branch information
Michael Bleigh committed Mar 31, 2009
1 parent 2aec65d commit c818db3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/twitter_auth/generic_user.rb
Expand Up @@ -15,7 +15,7 @@ class GenericUser < ActiveRecord::Base
:profile_sidebar_border_color,
:profile_text_color,
:profile_background_image_url,
:profile_background_tiled,
:profile_background_tile,
:friends_count,
:statuses_count,
:followers_count,
Expand Down
4 changes: 4 additions & 0 deletions lib/twitter_auth/dispatcher/shared.rb
@@ -1,6 +1,10 @@
module TwitterAuth
module Dispatcher
module Shared
def post!(status)
self.post('/statuses/update.json', :status => status)
end

def append_extension_to(path)
path, query_string = *(path.split("?"))
path << '.json' unless path.match(/\.(:?xml|json)\z/i)
Expand Down

0 comments on commit c818db3

Please sign in to comment.