Sha256: b832667c8d7eb43157129468827b06a76bb034dc27c075e7a6192a9a6550feb1

Contents?: true

Size: 247 Bytes

Versions: 14

Compression:

Stored size: 247 Bytes

Contents

class Teste < ActiveRecord::Base
  has_many :teste1
  scope :raro, -> {where("nome like '%raro%'")}
  scope :nao_raro, -> {where("nome not like '%raro%'")}
  accepts_nested_attributes_for :teste1, allow_destroy: true
  def to_s
    nome
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
templus_models-1.2.6 test/dummy/app/models/teste.rb
templus_models-1.2.5 test/dummy/app/models/teste.rb
templus_models-1.2.4 test/dummy/app/models/teste.rb
templus_models-1.2.3 test/dummy/app/models/teste.rb
templus_models-1.2.2 test/dummy/app/models/teste.rb
templus_models-1.2.1 test/dummy/app/models/teste.rb
templus_models-1.2.0 test/dummy/app/models/teste.rb
templus_models-1.0.6 test/dummy/app/models/teste.rb
templus_models-1.0.5 test/dummy/app/models/teste.rb
templus_models-1.0.4 test/dummy/app/models/teste.rb
templus_models-1.0.3 test/dummy/app/models/teste.rb
templus_models-1.0.2 test/dummy/app/models/teste.rb
templus_models-1.0.1 test/dummy/app/models/teste.rb
templus_models-1.0.0 test/dummy/app/models/teste.rb