Permalink
Browse files

Added comments.

  • Loading branch information...
1 parent b778b96 commit 420caa9c8da2bb77242ee3ce6c27c598414915b7 @bananagi bananagi committed May 4, 2011
@@ -22,7 +22,7 @@ def opensocial_wap
self.write_inheritable_attribute :url_settings, app_config.opensocial_wap[:url]
end
- include ::OpensocialWap::ActionController::Redirecting
+ include OpensocialWap::ActionController::Redirecting
end
end
end
@@ -4,6 +4,7 @@
module OpensocialWap
module Config
module OAuth
+ # Singleton Pattern
extend self
def configure(&blk)
@@ -4,6 +4,7 @@
module OpensocialWap
module Config
module Url
+ # Singleton Pattern
extend self
def configure(&blk)
@@ -57,21 +57,21 @@ def self.consumer_key(arg = nil)
if arg
@consumer_key = arg
end
- @consumer_key.dup if @consumer_key
+ @consumer_key if @consumer_key
end
def self.consumer_secret(arg = nil)
if arg
@consumer_secret = arg
end
- @consumer_secret.dup if @consumer_secret
+ @consumer_secret if @consumer_secret
end
def self.api_endpoint(arg = nil)
if arg
@api_endpoint = arg
end
- @api_endpoint.dup if @api_endpoint
+ @api_endpoint if @api_endpoint
end
def self.proxy_class(arg = nil)
@@ -24,7 +24,7 @@ def self.app_id(arg = nil)
if arg
@app_id = arg
end
- @app_id.dup if @app_id
+ @app_id if @app_id
end
end
end
@@ -1,5 +1,6 @@
module OpensocialWap
module Platform
+ # Singleton Pattern
extend self
def configure(config)
@@ -1,5 +1,6 @@
module OpensocialWap
module Platform
+ # Singleton Pattern
extend self
def gree(config, &block)
@@ -1,5 +1,6 @@
module OpensocialWap
module Platform
+ # Singleton Pattern
extend self
def mixi(config, &block)
@@ -1,5 +1,6 @@
module OpensocialWap
module Platform
+ # Singleton Pattern
extend self
def mobage(config, &block)

0 comments on commit 420caa9

Please sign in to comment.