Sha256: db1d7db1c04f34b6b201e41d458509d2d34df60a7505d17e23dcc8498dfc613d

Contents?: true

Size: 217 Bytes

Versions: 20

Compression:

Stored size: 217 Bytes

Contents

module Alchemy::Custom::Model::Errors
  class ParentNil < Error

    def initialize(msg = nil)
      msg = "You have define parent (use belongs_to method in controller" if msg.nil?
      super(msg)
    end


  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
alchemy-custom-model-3.2 lib/alchemy/custom/model/errors/parent_nil.rb
alchemy-custom-model-3.1.5 lib/alchemy/custom/model/errors/parent_nil.rb
alchemy-custom-model-3.1.4 lib/alchemy/custom/model/errors/parent_nil.rb
alchemy-custom-model-3.1.3 lib/alchemy/custom/model/errors/parent_nil.rb
alchemy-custom-model-3.1.2 lib/alchemy/custom/model/errors/parent_nil.rb
alchemy-custom-model-3.1.1 lib/alchemy/custom/model/errors/parent_nil.rb
alchemy-custom-model-3.1.0 lib/alchemy/custom/model/errors/parent_nil.rb
alchemy-custom-model-2.2.2 lib/alchemy/custom/model/errors/parent_nil.rb
alchemy-custom-model-3.0.0 lib/alchemy/custom/model/errors/parent_nil.rb
alchemy-custom-model-2.2.1 lib/alchemy/custom/model/errors/parent_nil.rb
alchemy-custom-model-2.2.0 lib/alchemy/custom/model/errors/parent_nil.rb
alchemy-custom-model-2.1.2 lib/alchemy/custom/model/errors/parent_nil.rb
alchemy-custom-model-2.1.1 lib/alchemy/custom/model/errors/parent_nil.rb
alchemy-custom-model-2.1.0 lib/alchemy/custom/model/errors/parent_nil.rb
alchemy-custom-model-2.0.3 lib/alchemy/custom/model/errors/parent_nil.rb
alchemy-custom-model-2.0.2 lib/alchemy/custom/model/errors/parent_nil.rb
alchemy-custom-model-2.0.1 lib/alchemy/custom/model/errors/parent_nil.rb
alchemy-custom-model-2.0.0 lib/alchemy/custom/model/errors/parent_nil.rb
alchemy-custom-model-0.1.9 lib/alchemy/custom/model/errors/parent_nil.rb
alchemy-custom-model-0.1.7 lib/alchemy/custom/model/errors/parent_nil.rb