Sha256: 292e102a0c49106a5ecef6720d234fc33c383fe9de16eba45e4a7785179ff55b

Contents?: true

Size: 395 Bytes

Versions: 21

Compression:

Stored size: 395 Bytes

Contents

require 'modalfields/modalfields'
require 'modalfields/standardfields'

if defined?(Rails) && Rails.respond_to?(:version)
  if Rails.version.split('.').first.to_i > 2
    class BackupTask < Rails::Railtie
      rake_tasks do
        Dir[File.join(File.dirname(__FILE__), 'tasks', '**/*.rake')].each { |f| load f }
      end
    end
  end
  ModalFields.enable if defined?(ActiveRecord::Base)
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
modalfields-1.5.7 lib/modalfields.rb
modalfields-1.5.6 lib/modalfields.rb
modalfields-1.5.5 lib/modalfields.rb
modalfields-1.5.4 lib/modalfields.rb
modalfields-1.5.3 lib/modalfields.rb
modalfields-1.5.2 lib/modalfields.rb
modalfields-1.5.1 lib/modalfields.rb
modalfields-1.5.0 lib/modalfields.rb
modalfields-1.4.7 lib/modalfields.rb
modalfields-1.4.6 lib/modalfields.rb
modalfields-1.4.5 lib/modalfields.rb
modalfields-1.4.4 lib/modalfields.rb
modalfields-1.4.3 lib/modalfields.rb
modalfields-1.4.2 lib/modalfields.rb
modalfields-1.4.1 lib/modalfields.rb
modalfields-1.4.0 lib/modalfields.rb
modalfields-1.3.0 lib/modalfields.rb
modalfields-1.2.2 lib/modalfields.rb
modalfields-1.2.1 lib/modalfields.rb
modalfields-1.2.0 lib/modalfields.rb