File: rails_validations.rb

package info (click to toggle)
ruby-client-side-validations 3.2.6%2Bgh-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 676 kB
  • sloc: javascript: 3,019; ruby: 2,959; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 319 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module ClientSideValidations
  module Generators
    class RailsValidations
      def self.assets
        [{
          :path => File.expand_path('../../../../vendor/assets/javascripts', __FILE__),
          :file => 'rails.validations.js'
        }]
      end

      Generators.register_assets(self)
    end
  end
end