lib/tire/results/item.rb
# Let's pretend we're someone else in Rails
#
Let's pretend we're someone else in Rails
Let ' s pretend we ' re someone else in Rails
def class
        defined?(::Rails) && @attributes[:_type] ? @attributes[:_type].camelize.constantize : super
      rescue NameError
        super
      end
def class defined? ( :: Rails ) && @attributes [ :_type ] ? @attributes [ :_type ] . camelize . constantize : super rescue NameError super end
Let's pretend we're someone else in Rails
Let ' s pretend we ' re someone else in Rails