Sha256: 4c6cafeb3e73267c1cc72e6f17958f98af30bbd7c9cdf7d7df4daf473fcaeb6d

Contents?: true

Size: 187 Bytes

Versions: 6

Compression:

Stored size: 187 Bytes

Contents

class Sequel::Model
  
  # Allows Rails resource path helpers to work correctly
  def to_param
    pk.to_s
  end
  
  # Make new? play nice with Rails
  def new_record?
    new?
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
pusewicz-rails_sequel-0.1.2 lib/rails_sequel/sequel_ext.rb
pusewicz-rails_sequel-0.1.3 lib/rails_sequel/sequel_ext.rb
pusewicz-rails_sequel-0.1.4 lib/rails_sequel/sequel_ext.rb
pusewicz-rails_sequel-0.2.0 lib/rails_sequel/sequel_ext.rb
pusewicz-rails_sequel-0.2.1 lib/rails_sequel/sequel_ext.rb
rails_sequel-0.0.2 lib/rails_sequel/sequel_ext.rb