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
rjspotter-ramaze-2009.06.29 lib/ramaze/contrib/facebook.rb
rjspotter-ramaze-2009.06.31 lib/ramaze/contrib/facebook.rb
ramaze-2011.01.30 lib/ramaze/contrib/facebook.rb
ramaze-2011.01 lib/ramaze/contrib/facebook.rb
ramaze-2010.06.18 lib/ramaze/contrib/facebook.rb
ramaze-2010.04.04 lib/ramaze/contrib/facebook.rb
ramaze-2010.04 lib/ramaze/contrib/facebook.rb
ramaze-2010.03 lib/ramaze/contrib/facebook.rb
ramaze-2010.01 lib/ramaze/contrib/facebook.rb
ramaze-2009.10 lib/ramaze/contrib/facebook.rb
ramaze-2009.07 lib/ramaze/contrib/facebook.rb
ramaze-2009.01 lib/ramaze/contrib/facebook.rb
ramaze-2009.03 lib/ramaze/contrib/facebook.rb
ramaze-2009.05 lib/ramaze/contrib/facebook.rb
ramaze-2009.04 lib/ramaze/contrib/facebook.rb
ramaze-2009.02 lib/ramaze/contrib/facebook.rb
ramaze-2009.06 lib/ramaze/contrib/facebook.rb
ramaze-2009.06.04 lib/ramaze/contrib/facebook.rb
ramaze-2009.06.12 lib/ramaze/contrib/facebook.rb