Sha256: b54161c61583864daeffa613d08eaa2153be293ab0e59eab567cb58aa433cab8

Contents?: true

Size: 322 Bytes

Versions: 4

Compression:

Stored size: 322 Bytes

Contents

module ActsAsChattable
  class Rails4
    def initialize(subject)
      @subject = subject
    end

    def default_scope(order_by)
      @subject.default_scope { order(order_by) }
    end

    def scoped
      @subject.scope
    end

    def method_missing(name, *args)
      @subject.send(name, *args)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
acts_as_chattable-0.0.4 lib/acts_as_chattable/rails4.rb
acts_as_chattable-0.0.3 lib/acts_as_chattable/rails4.rb
acts_as_chattable-0.0.2 lib/acts_as_chattable/rails4.rb
acts_as_chattable-0.0.1 lib/acts_as_chattable/rails4.rb