Sha256: 9c6acd5739d04ffc7806b47b53c22dbb683ae9a9564c38915b11040739e83ef4
Contents?: true
Size: 442 Bytes
Versions: 1
Compression:
Stored size: 442 Bytes
Contents
module ActsAsMessageable class Rails4 def initialize(subject) @subject = subject end def attr_accessible(*args) @subject.attr_accessible(*args) if defined?(ProtectedAttributes) end def default_scope(order_by) @subject.send(: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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acts-as-messageable-0.4.11 | lib/acts-as-messageable/rails4.rb |