Sha256: bd3c86370a17f7165aeff3f8a353250dcd8c35607309b8e9ab5716bc94f46c63

Contents?: true

Size: 448 Bytes

Versions: 29

Compression:

Stored size: 448 Bytes

Contents

class ActiveScaffold::Bridges::Chosen < ActiveScaffold::DataStructures::Bridge
  def self.install
    require File.join(File.dirname(__FILE__), 'chosen/helpers.rb')
  end
  def self.install?
    super && [:jquery, :prototype].include?(ActiveScaffold.js_framework)
  end
  def self.stylesheets
    'chosen'
  end
  def self.javascripts
    ["chosen-#{ActiveScaffold.js_framework}", "#{ActiveScaffold.js_framework}/active_scaffold_chosen"]
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
active_scaffold-3.4.43 lib/active_scaffold/bridges/chosen.rb
active_scaffold-3.4.42 lib/active_scaffold/bridges/chosen.rb
active_scaffold-3.4.41.1 lib/active_scaffold/bridges/chosen.rb
active_scaffold-3.4.41 lib/active_scaffold/bridges/chosen.rb
active_scaffold-3.4.40 lib/active_scaffold/bridges/chosen.rb
active_scaffold-3.4.39 lib/active_scaffold/bridges/chosen.rb
active_scaffold-3.4.38 lib/active_scaffold/bridges/chosen.rb
active_scaffold-3.4.37 lib/active_scaffold/bridges/chosen.rb
active_scaffold-3.4.36 lib/active_scaffold/bridges/chosen.rb
active_scaffold-3.4.35 lib/active_scaffold/bridges/chosen.rb
active_scaffold-3.4.34 lib/active_scaffold/bridges/chosen.rb
active_scaffold-3.4.33 lib/active_scaffold/bridges/chosen.rb
active_scaffold-3.4.32 lib/active_scaffold/bridges/chosen.rb
active_scaffold-3.4.31 lib/active_scaffold/bridges/chosen.rb
active_scaffold-3.4.30 lib/active_scaffold/bridges/chosen.rb
active_scaffold-3.4.29 lib/active_scaffold/bridges/chosen.rb
active_scaffold-3.4.28 lib/active_scaffold/bridges/chosen.rb
active_scaffold-3.4.27 lib/active_scaffold/bridges/chosen.rb
active_scaffold-3.4.26 lib/active_scaffold/bridges/chosen.rb
active_scaffold-3.4.25 lib/active_scaffold/bridges/chosen.rb