mix-rails-core 0.26.1 → 0.26.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2c29c6a2b139e60d77f5bc804cb7e8191a08425
|
4
|
+
data.tar.gz: 587e8eadc8291c2d468ae4a1d6a1f474665d8bfe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a79a45fb2d8f8f61dfd6b40ddcb7520464abf732f95549f4085fc5a2190591a63d39363bceebc5f09b434e6c4cee7f15d653426a3f1ee51bba2d4cb399802a7b
|
7
|
+
data.tar.gz: c5ca17c1aad785d41e702f1f4c376d68b963b5c4d8c2d431b1e1ee229fde07552b89d076aaaf751610b7fd416127ee5cf907082e3db0e03ec7f7bda550bcb186
|
@@ -10,7 +10,9 @@ class ApplicationAuthorizer < Authority::Authorizer
|
|
10
10
|
def self.default(adjective, user)
|
11
11
|
# 'Whitelist' strategy for security: anything not explicitly allowed is
|
12
12
|
# considered forbidden.
|
13
|
-
|
13
|
+
|
14
|
+
# default was false
|
15
|
+
user.has_role? :admin
|
14
16
|
end
|
15
17
|
|
16
18
|
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
class ActsAsTaggableOnMigration < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
create_table :tags do |t|
|
4
|
+
t.string :name
|
5
|
+
end
|
6
|
+
|
7
|
+
create_table :taggings do |t|
|
8
|
+
t.references :tag
|
9
|
+
|
10
|
+
# You should make sure that the column created is
|
11
|
+
# long enough to store the required class names.
|
12
|
+
t.references :taggable, :polymorphic => true
|
13
|
+
t.references :tagger, :polymorphic => true
|
14
|
+
|
15
|
+
# Limit is created to prevent MySQL error on index
|
16
|
+
# length for MyISAM table type: http://bit.ly/vgW2Ql
|
17
|
+
t.string :context, :limit => 128
|
18
|
+
|
19
|
+
t.datetime :created_at
|
20
|
+
end
|
21
|
+
|
22
|
+
add_index :taggings, :tag_id
|
23
|
+
add_index :taggings, [:taggable_id, :taggable_type, :context]
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.down
|
27
|
+
drop_table :taggings
|
28
|
+
drop_table :tags
|
29
|
+
end
|
30
|
+
end
|
data/lib/mix-rails-core.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mix-rails-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.26.
|
4
|
+
version: 0.26.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sadjow Leão
|
@@ -326,6 +326,7 @@ files:
|
|
326
326
|
- app/assets/javascripts/jquery/jquery.livequery.js
|
327
327
|
- app/assets/javascripts/gmaps.js
|
328
328
|
- app/assets/javascripts/jquery.maskedinput.js
|
329
|
+
- app/assets/javascripts/inputs_masks.coffee
|
329
330
|
- app/assets/javascripts/jquery.meio.mask.min.js
|
330
331
|
- app/assets/javascripts/angular-google-maps.js
|
331
332
|
- app/assets/javascripts/jquery.globalmoney.js
|
@@ -1077,6 +1078,7 @@ files:
|
|
1077
1078
|
- config/initializers/ckeditor.rb
|
1078
1079
|
- config/initializers/carrierwave.rb
|
1079
1080
|
- config/routes.rb
|
1081
|
+
- db/migrate/20130313020623_acts_as_taggable_on_migration.rb
|
1080
1082
|
- db/migrate/20130207132351_create_categorizations.rb
|
1081
1083
|
- db/migrate/20130214134814_add_related_id_related_type_to_attachment.rb
|
1082
1084
|
- db/migrate/20130206195145_create_attachments.rb
|