Sha256: 905507c6439e27078ecdc7ed02045fe0544c8d82db3e827517d4f5e42733ced8

Contents?: true

Size: 268 Bytes

Versions: 23

Compression:

Stored size: 268 Bytes

Contents

module C80Yax
  class Vendor < ActiveRecord::Base

    has_and_belongs_to_many :items

    before_save :before_save_format_title

    private

    def before_save_format_title
      self.title = self.title.mb_chars.capitalize.to_s unless self.as_is
    end

  end

end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
c80_yax-0.1.0.25 app/models/c80_yax/vendor.rb
c80_yax-0.1.0.24 app/models/c80_yax/vendor.rb
c80_yax-0.1.0.23 app/models/c80_yax/vendor.rb
c80_yax-0.1.0.22 app/models/c80_yax/vendor.rb
c80_yax-0.1.0.21 app/models/c80_yax/vendor.rb
c80_yax-0.1.0.20 app/models/c80_yax/vendor.rb
c80_yax-0.1.0.18 app/models/c80_yax/vendor.rb
c80_yax-0.1.0.17 app/models/c80_yax/vendor.rb
c80_yax-0.1.0.16 app/models/c80_yax/vendor.rb
c80_yax-0.1.0.15 app/models/c80_yax/vendor.rb
c80_yax-0.1.0.14 app/models/c80_yax/vendor.rb
c80_yax-0.1.0.13 app/models/c80_yax/vendor.rb
c80_yax-0.1.0.12 app/models/c80_yax/vendor.rb
c80_yax-0.1.0.11 app/models/c80_yax/vendor.rb
c80_yax-0.1.0.10 app/models/c80_yax/vendor.rb
c80_yax-0.1.0.9 app/models/c80_yax/vendor.rb
c80_yax-0.1.0.8 app/models/c80_yax/vendor.rb
c80_yax-0.1.0.7 app/models/c80_yax/vendor.rb
c80_yax-0.1.0.6 app/models/c80_yax/vendor.rb
c80_yax-0.1.0.5 app/models/c80_yax/vendor.rb