Module: Ramaze::Helper::Facebook

Defined in:
lib/ramaze/contrib/facebook.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



5
6
7
# File 'lib/ramaze/contrib/facebook.rb', line 5

def self.included(klass)
  klass.send(:helper, :aspect)
end

Instance Method Details

#errorObject



9
10
11
12
13
14
# File 'lib/ramaze/contrib/facebook.rb', line 9

def error
  if Facebook::ADMINS.include? facebook[:user]
    error = Ramaze::Dispatcher::Error.current
    [error, *error.backtrace].join '<br/>'
  end
end