lolita 3.2.0.rc.10 → 3.2.0.rc.11
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/stylesheets/lolita/style.css.erb +1 -1
- data/lib/generators/templates/lolita.rb +1 -1
- data/lib/lolita/adapter/mongoid.rb +1 -1
- data/lib/lolita/configuration/factory/field.rb +0 -1
- data/lib/lolita/configuration/tab.rb +3 -0
- data/lib/lolita/controllers/component_helpers.rb +1 -1
- data/lib/lolita/version.rb +1 -1
- data/lib/tasks/tinymce-assets.rake +7 -0
- metadata +6 -2
@@ -69,7 +69,7 @@ header nav .username {margin-right: 15px;}
|
|
69
69
|
#main .box form input {background: #FFF;}
|
70
70
|
#main .box form label {color: #c3c3c3; font-size: 13px;}
|
71
71
|
#main .box form select {min-width: 150px;}
|
72
|
-
#main .box form .
|
72
|
+
#main .box form .field_date_time select, #main .box form .field_time select,#main .box form .field_date select {min-width: 0px;}
|
73
73
|
#main .box form .field {margin: 10px 0; overflow: hidden;}
|
74
74
|
#main .box form .field:first-child input {
|
75
75
|
font-size: 24px;
|
@@ -11,7 +11,7 @@ Lolita.setup do |config|
|
|
11
11
|
|
12
12
|
<% if defined?(Devise) %>
|
13
13
|
<% default_user_class = Devise.mappings.keys.first %>
|
14
|
-
config.user_classes << <%=
|
14
|
+
config.user_classes << <%= default_user_class.to_s.camelize %>
|
15
15
|
config.authentication=:authenticate_<%= default_user_class %>!
|
16
16
|
<% end %>
|
17
17
|
end
|
@@ -200,6 +200,9 @@ module Lolita
|
|
200
200
|
|
201
201
|
def get_class(association_name)
|
202
202
|
if association_name.is_a?(Symbol) && assoc = self.current_dbi.reflect_on_association(association_name)
|
203
|
+
if dbi.klass.nested_attributes_options[association_name].nil?
|
204
|
+
raise ArgumentError, "#{dbi.klass} association named `#{association_name}` called nested_fields_XXX without accepts_nested_attributes_for :#{association_name}"
|
205
|
+
end
|
203
206
|
assoc.klass
|
204
207
|
else
|
205
208
|
raise ArgumentError, "Association named `#{association_name}` not found for #{self.current_dbi.klass}."
|
@@ -131,7 +131,7 @@ module Lolita
|
|
131
131
|
#
|
132
132
|
# component_helper_path :"lolita/list" #=> [path_to_lolita]/app/helpers/components/lolita/list_component.rb
|
133
133
|
def component_helper_path component_name
|
134
|
-
@helper_paths||=$:.reject{|p| !p.match(/\/helpers$/)}
|
134
|
+
@helper_paths||=$:.reject{|p| !p.match(/\/helpers$/) rescue nil}
|
135
135
|
get_path=lambda{|paths|
|
136
136
|
extra_path=component_name.to_s.split("/")
|
137
137
|
component=extra_path.pop
|
data/lib/lolita/version.rb
CHANGED
@@ -0,0 +1,7 @@
|
|
1
|
+
Rake::Task['assets:precompile:primary'].enhance do
|
2
|
+
assets = File.expand_path(File.dirname(__FILE__) + "/../../vendor/assets/javascripts/tinymce")
|
3
|
+
target = File.join(Rails.public_path, Rails.application.config.assets.prefix)
|
4
|
+
|
5
|
+
mkdir_p target
|
6
|
+
cp_r assets, target
|
7
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lolita
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.0.rc.
|
4
|
+
version: 3.2.0.rc.11
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-08-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: kaminari
|
@@ -419,6 +419,7 @@ files:
|
|
419
419
|
- lib/lolita/test/matchers.rb
|
420
420
|
- lib/lolita/utils.rb
|
421
421
|
- lib/lolita/version.rb
|
422
|
+
- lib/tasks/tinymce-assets.rake
|
422
423
|
- lolita.gemspec
|
423
424
|
- spec/adapter_helper.rb
|
424
425
|
- spec/builder_spec.rb
|
@@ -576,6 +577,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
576
577
|
- - ! '>='
|
577
578
|
- !ruby/object:Gem::Version
|
578
579
|
version: '0'
|
580
|
+
segments:
|
581
|
+
- 0
|
582
|
+
hash: 756764070292779788
|
579
583
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
580
584
|
none: false
|
581
585
|
requirements:
|