Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

class_attribute instead of class_inheritable_accessor.

  • Loading branch information...
commit 155e8b2a1d813074121974d3ac48326654329b59 1 parent b81f2b5
@bananagi bananagi authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/opensocial-wap/action_controller/controller_hook.rb
View
6 lib/opensocial-wap/action_controller/controller_hook.rb
@@ -8,8 +8,8 @@ class Base
helper ::OpensocialWap::Helpers::FormTagHelper
helper ::OpensocialWap::Helpers::AssetTagHelper
- class_inheritable_accessor :opensocial_wap_enabled
- class_inheritable_reader :url_settings
+ class_attribute :opensocial_wap_enabled
+ class_attribute :url_settings
class << self
@@ -19,7 +19,7 @@ def opensocial_wap
app_config = Rails.application.config
if app_config.respond_to?(:opensocial_wap)
- self.write_inheritable_attribute :url_settings, app_config.opensocial_wap[:url]
+ self.url_settings = app_config.opensocial_wap[:url]
end
include OpensocialWap::ActionController::Redirecting
Please sign in to comment.
Something went wrong with that request. Please try again.