Sha256: b2e3949f9db64aaeb35d0e7f36485de94ffa2c738d269d11d99923f5a0c0ed49

Contents?: true

Size: 350 Bytes

Versions: 41

Compression:

Stored size: 350 Bytes

Contents

module Mobility
  module Sequel
=begin

Module included in translation class dynamically generated by
{Backends::Sequel::Table} backend.

=end
    module ModelTranslation
      def self.included(base)
        base.plugin :validation_helpers
      end

      def validate
        super
        validates_presence [:locale]
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
mobility-1.0.0.beta2 lib/mobility/sequel/model_translation.rb
mobility-1.0.0.beta1 lib/mobility/sequel/model_translation.rb
mobility-1.0.0.alpha lib/mobility/sequel/model_translation.rb
mobility-0.8.13 lib/mobility/sequel/model_translation.rb
mobility-0.8.11 lib/mobility/sequel/model_translation.rb
mobility-0.8.10 lib/mobility/sequel/model_translation.rb
mobility-0.8.9 lib/mobility/sequel/model_translation.rb
mobility-0.8.8 lib/mobility/sequel/model_translation.rb
mobility-0.8.7 lib/mobility/sequel/model_translation.rb
mobility-0.8.6 lib/mobility/sequel/model_translation.rb
mobility-0.8.5 lib/mobility/sequel/model_translation.rb
mobility-0.8.4 lib/mobility/sequel/model_translation.rb
mobility-0.8.3 lib/mobility/sequel/model_translation.rb
mobility-0.8.2 lib/mobility/sequel/model_translation.rb
mobility-0.8.1 lib/mobility/sequel/model_translation.rb
mobility-0.8.0 lib/mobility/sequel/model_translation.rb
mobility-0.7.6 lib/mobility/sequel/model_translation.rb
mobility-0.7.5 lib/mobility/sequel/model_translation.rb
mobility-0.7.4 lib/mobility/sequel/model_translation.rb
mobility-0.7.3 lib/mobility/sequel/model_translation.rb