Example of interesting behavior of scopes in ActiveRecord 4.
● master ~/Code/OSS/scope-v-method » bundle console
irb(main):001:0> require_relative 'foo'
=> true
irb(main):002:0> Foo.bar
=> [:bar]
irb(main):003:0> _.class
=> Array
irb(main):004:0> Foo.baz
=> #<ActiveRecord::Relation []>
irb(main):005:0> _.class
=> Foo::ActiveRecord_Relation
irb(main):006:0> Foo.create! name: 'foo'
=> #<Foo id: 1, name: "foo">
irb(main):007:0> Foo.by_name_s('foo')
=> ["foo"]
irb(main):008:0> _.class
=> Array
irb(main):009:0> Foo.by_name_m('foo')
=> ["foo"]
irb(main):010:0> _.class
=> Array
Also see the same example in ActiveRecord 3