Sha256: 039fa06d85997cd9135ac346fa026a042833541b4b37dc522c8df515dd677866

Contents?: true

Size: 361 Bytes

Versions: 2

Compression:

Stored size: 361 Bytes

Contents

module ActsAsMessageable
  class Rails3
    def initialize(subject)
      @subject = subject
    end

    def attr_accessible(*args)
      @subject.attr_accessible(*args)
    end

    def default_scope(order_by)
      @subject.send(:default_scope, order(order_by))
    end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
acts-as-messageable-0.4.11 lib/acts-as-messageable/rails3.rb
acts-as-messageable-0.4.10 lib/acts-as-messageable/rails3.rb