Sha256: b198084b1c88af54cfcf3b0f0df5af25ddc26c1c2ebcd9f25bd9b072b7110eda

Contents?: true

Size: 443 Bytes

Versions: 39

Compression:

Stored size: 443 Bytes

Contents

require __DIR__('facebook/facebook')

module Ramaze
  module Helper::Facebook
    def self.included(klass)
      klass.send(:helper, :aspect)
    end

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

    private

    def facebook
      @facebook ||= Facebook::Client.new
    end
    alias fb facebook
  end
end

Version data entries

39 entries across 39 versions & 5 rubygems

Version Path
Pistos-ramaze-2008.12 lib/ramaze/contrib/facebook.rb
Pistos-ramaze-2009.01 lib/ramaze/contrib/facebook.rb
Pistos-ramaze-2009.02 lib/ramaze/contrib/facebook.rb
Pistos-ramaze-2009.04.08 lib/ramaze/contrib/facebook.rb
Pistos-ramaze-2009.06.12 lib/ramaze/contrib/facebook.rb
manveru-ramaze-2008.12 lib/ramaze/contrib/facebook.rb
manveru-ramaze-2009.01 lib/ramaze/contrib/facebook.rb
manveru-ramaze-2009.04.01 lib/ramaze/contrib/facebook.rb
manveru-ramaze-2009.04.08 lib/ramaze/contrib/facebook.rb
manveru-ramaze-2009.04.18 lib/ramaze/contrib/facebook.rb
manveru-ramaze-2009.04.22 lib/ramaze/contrib/facebook.rb
manveru-ramaze-2009.04 lib/ramaze/contrib/facebook.rb
manveru-ramaze-2009.05.08 lib/ramaze/contrib/facebook.rb
manveru-ramaze-2009.05 lib/ramaze/contrib/facebook.rb
manveru-ramaze-2009.06.04 lib/ramaze/contrib/facebook.rb
manveru-ramaze-2009.06.12 lib/ramaze/contrib/facebook.rb
manveru-ramaze-2009.06 lib/ramaze/contrib/facebook.rb
manveru-ramaze-2009.07 lib/ramaze/contrib/facebook.rb
ptomato-ramaze-2009.02.1 lib/ramaze/contrib/facebook.rb
ptomato-ramaze-2009.02 lib/ramaze/contrib/facebook.rb