<p>I have named_scope which is reused in multiple ActiveRecord models.
For example:</p>

<pre><code>  named_scope :limit, lambda {|limit| {:limit =&gt; limit}}    
</code></pre>

<p>What is the best practice to extract this code to be shared across models.
Is it possible to extract it to a module or should I rather reopen ActiveRecord::Base class?</p>

Use a module. Something like this should work:
```
```
module CommonScopes
  def self.included(base)
    base.class_eval do
      named_scope :limit, lambda {|limit| {:limit => limit}}
    end
  end
end
```
```
Then just include CommonScopes and you'll be good to go.