Sha256: c23230e3faf4f355646dfd17c491b0dff9e001ec93fc622aa721571654d9b2c5
Contents?: true
Size: 1.68 KB
Versions: 4
Compression:
Stored size: 1.68 KB
Contents
$:.unshift File.expand_path(File.dirname(__FILE__)) require 'active_support' require 'carrierwave/mongoid' require 'monetize' Money.use_i18n = false module CustomFields @@options = { reserved_names: Mongoid.destructive_fields + %w(id _id send class destroy), default_currency: 'EUR' } def self.options=(options) @@options.merge!(options) end def self.options @@options end end %w( version extensions/active_support extensions/carrierwave extensions/mongoid/document extensions/mongoid/factory extensions/mongoid/relations/referenced/many extensions/mongoid/relations/referenced/in extensions/mongoid/fields.rb extensions/mongoid/fields/i18n.rb extensions/mongoid/fields/localized.rb extensions/mongoid/validations/collection_size.rb extensions/mongoid/validations/macros.rb extensions/origin/smash.rb types/default types/string types/text types/email types/date types/date_time types/boolean types/file types/select types/integer types/float types/money types/color types/relationship_default types/belongs_to types/has_many types/many_to_many types/tags field source target_helpers target ).each do |lib| require_relative "./custom_fields/#{lib}" end # Load all the translation files I18n.load_path += Dir[File.join(File.dirname(__FILE__), '..', 'config', 'locales', '*.yml')] module MyBenchmark def self.measure(caption, &block) t1 = Time.now returned_value = block.call puts "[MyBenchmark] #{caption} took #{((Time.now - t1) * 1000).to_i} ms" returned_value end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
custom_fields-2.4.0.rc7 | lib/custom_fields.rb |
custom_fields-2.4.0.rc6 | lib/custom_fields.rb |
custom_fields-2.4.0.rc5 | lib/custom_fields.rb |
custom_fields-2.4.0.rc4 | lib/custom_fields.rb |