Sha256: 6f748bcc319f69dc9ec3f3c137c5655ad32ba5f2b25f8bc65998f1404ddba8ef

Contents?: true

Size: 349 Bytes

Versions: 19

Compression:

Stored size: 349 Bytes

Contents

module Mobility
  module Sequel
=begin

Module included in translation class dynamically generated by
{Backend::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

19 entries across 19 versions & 1 rubygems

Version Path
mobility-0.1.20 lib/mobility/sequel/model_translation.rb
mobility-0.1.19 lib/mobility/sequel/model_translation.rb
mobility-0.1.18 lib/mobility/sequel/model_translation.rb
mobility-0.1.17 lib/mobility/sequel/model_translation.rb
mobility-0.1.16 lib/mobility/sequel/model_translation.rb
mobility-0.1.15 lib/mobility/sequel/model_translation.rb
mobility-0.1.14 lib/mobility/sequel/model_translation.rb
mobility-0.1.13 lib/mobility/sequel/model_translation.rb
mobility-0.1.12 lib/mobility/sequel/model_translation.rb
mobility-0.1.11 lib/mobility/sequel/model_translation.rb
mobility-0.1.10 lib/mobility/sequel/model_translation.rb
mobility-0.1.7 lib/mobility/sequel/model_translation.rb
mobility-0.1.6 lib/mobility/sequel/model_translation.rb
mobility-0.1.5 lib/mobility/sequel/model_translation.rb
mobility-0.1.4 lib/mobility/sequel/model_translation.rb
mobility-0.1.3 lib/mobility/sequel/model_translation.rb
mobility-0.1.2 lib/mobility/sequel/model_translation.rb
mobility-0.1.1 lib/mobility/sequel/model_translation.rb
mobility-0.1.0 lib/mobility/sequel/model_translation.rb