Sha256: 44b023a6e16caf73948a3e26331b4e46ce891ff73a76e9a8b4ecfd88f866b20b
Contents?: true
Size: 269 Bytes
Versions: 3
Compression:
Stored size: 269 Bytes
Contents
# Bugfix: Team.offset(1).limit(1) throws an error ActiveRecord::Base.instance_eval do def offset(*args, &block) scoped.__send__(:offset, *args, &block) rescue NoMethodError if scoped.nil? 'depends on :allow_nil' else raise end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
active_scaffold-3.0.12 | lib/extensions/active_record_offset.rb |
active_scaffold-3.0.11 | lib/extensions/active_record_offset.rb |
active_scaffold-3.0.5 | lib/extensions/active_record_offset.rb |