activeadmin_selectize 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ require 'activeadmin/selectize/engine'
@@ -0,0 +1,9 @@
1
+ require 'active_admin'
2
+
3
+ module ActiveAdmin
4
+ module Selectize
5
+ class Engine < ::Rails::Engine
6
+ engine_name 'activeadmin_selectize'
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ module ActiveAdmin
2
+ module Selectize
3
+ VERSION = '0.1.0'
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ require 'activeadmin/selectize'
2
+
3
+ require 'formtastic/inputs/selectize_input'
@@ -0,0 +1,19 @@
1
+ module Formtastic
2
+ module Inputs
3
+ class SelectizeInput < Formtastic::Inputs::SelectInput
4
+ include Formtastic::Inputs::Base
5
+
6
+ def input_html_options
7
+ super.merge( class: 'selectized' )
8
+ end
9
+
10
+ # def collection
11
+ # if !options[:collection] && column
12
+ # object.send( column.name ).map { |row| [ row.respond_to?( :name ) ? row.name : row.to_s, row.id ] }
13
+ # else
14
+ # super
15
+ # end
16
+ # end
17
+ end
18
+ end
19
+ end
metadata ADDED
@@ -0,0 +1,77 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: activeadmin_selectize
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Mattia Roccoberton
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-05-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activeadmin
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ description: An Active Admin plugin to use Selectize.js (jQuery required)
28
+ email: mat@blocknot.es
29
+ executables: []
30
+ extensions: []
31
+ extra_rdoc_files: []
32
+ files:
33
+ - ".gitignore"
34
+ - Gemfile
35
+ - LICENSE.txt
36
+ - README.md
37
+ - Rakefile
38
+ - activeadmin_selectize.gemspec
39
+ - app/assets/javascripts/activeadmin/selectize/selectize.js
40
+ - app/assets/javascripts/activeadmin/selectize/selectize.min.js
41
+ - app/assets/javascripts/activeadmin/selectize_input.js
42
+ - app/assets/stylesheets/activeadmin/_selectize_input.sass
43
+ - app/assets/stylesheets/activeadmin/selectize/selectize.bootstrap2.css
44
+ - app/assets/stylesheets/activeadmin/selectize/selectize.bootstrap3.css
45
+ - app/assets/stylesheets/activeadmin/selectize/selectize.css
46
+ - app/assets/stylesheets/activeadmin/selectize/selectize.default.css
47
+ - app/assets/stylesheets/activeadmin/selectize/selectize.legacy.css
48
+ - lib/activeadmin/selectize.rb
49
+ - lib/activeadmin/selectize/engine.rb
50
+ - lib/activeadmin/selectize/version.rb
51
+ - lib/activeadmin_selectize.rb
52
+ - lib/formtastic/inputs/selectize_input.rb
53
+ homepage: https://github.com/blocknotes/activeadmin_selectize
54
+ licenses:
55
+ - MIT
56
+ metadata: {}
57
+ post_install_message:
58
+ rdoc_options: []
59
+ require_paths:
60
+ - lib
61
+ required_ruby_version: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ requirements: []
72
+ rubyforge_project:
73
+ rubygems_version: 2.5.2
74
+ signing_key:
75
+ specification_version: 4
76
+ summary: Selectize for ActiveAdmin
77
+ test_files: []