Sha256: 49b1555c7549541c5698bac0a0bf9014e8ee391f022cf9a1ea89b5dc751ced50

Contents?: true

Size: 458 Bytes

Versions: 2

Compression:

Stored size: 458 Bytes

Contents

require "vuejs-rails/version"

module Vue
  mattr_accessor :development_mode
  self.development_mode = defined?(::Rails) && ::Rails.env.development?

  class << self
    def full_or_minified(asset_name)
      development_mode ? "dist/#{asset_name}.js": "dist/#{asset_name}.min.js"
    end
  end

  module Rails
    require "vuejs-rails/engine" if defined?(::Rails) and Gem::Requirement.new('>= 3.1').satisfied_by?(Gem::Version.new ::Rails.version)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vuejs-rails-2.5.13 lib/vuejs-rails.rb
vuejs-rails-2.4.2 lib/vuejs-rails.rb