Module: OpenGraph
- Defined in:
- lib/open_graph.rb,
lib/open_graph/version.rb,
lib/open_graph/fb_open_graph.rb,
lib/open_graph/test/facebook_stub.rb,
lib/open_graph/rails/action_view_help.rb,
lib/open_graph/rails/action_controller_accessor.rb
Defined Under Namespace
Modules: Rails
Classes: FBOpenGraph
Constant Summary
collapse
- VERSION =
"0.1.6.1"
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
12
13
14
15
16
17
18
|
# File 'lib/open_graph.rb', line 12
def config
@config ||= begin
config = HashWithIndifferentAccess.new
yaml_file = YAML.load_file("#{RAILS_ROOT}/config/facebook.yml")
config.merge(yaml_file[RAILS_ENV])
end
end
|
.logger ⇒ Object
20
21
22
23
24
25
26
27
28
|
# File 'lib/open_graph.rb', line 20
def logger
@logger ||= begin
if defined?(::Rails.logger)
::Rails.logger
elsif defined?(RAILS_DEFAULT_LOGGER)
RAILS_DEFAULT_LOGGER
end
end
end
|