Sha256: 8f7fc34c756259dfa594bfde21366173d7d98da554c94ec75910a6ccbe5b0cba

Contents?: true

Size: 266 Bytes

Versions: 36

Compression:

Stored size: 266 Bytes

Contents

module Optimacms
  class Language < ActiveRecord::Base
    self.table_name = 'cms_languages'


    scope :admin_enabled, -> {order('pos asc')}

    def self.list_with_default
      rows = ['']+Language.admin_enabled.all.map(&:lang)

    end

  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
optimacms-0.2.3 app/models/optimacms/language.rb
optimacms-0.1.59 app/models/optimacms/language.rb
optimacms-0.1.58 app/models/optimacms/language.rb
optimacms-0.1.57 app/models/optimacms/language.rb
optimacms-0.1.56 app/models/optimacms/language.rb
optimacms-0.1.54 app/models/optimacms/language.rb
optimacms-0.1.51 app/models/optimacms/language.rb
optimacms-0.1.50 app/models/optimacms/language.rb
optimacms-0.1.49 app/models/optimacms/language.rb
optimacms-0.1.48 app/models/optimacms/language.rb
optimacms-0.1.47 app/models/optimacms/language.rb
optimacms-0.1.45 app/models/optimacms/language.rb
optimacms-0.1.44 app/models/optimacms/language.rb
optimacms-0.1.43 app/models/optimacms/language.rb
optimacms-0.1.41 app/models/optimacms/language.rb
optimacms-0.1.40 app/models/optimacms/language.rb
optimacms-0.1.39 app/models/optimacms/language.rb
optimacms-0.1.38 app/models/optimacms/language.rb
optimacms-0.1.36 app/models/optimacms/language.rb
optimacms-0.1.34 app/models/optimacms/language.rb