cable 0.9.12 → 0.9.13
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.
- data/VERSION +1 -1
- data/lib/cable.rb +3 -3
- data/lib/cable/schema/menuable.rb +23 -0
- metadata +3 -3
- data/lib/cable/schema/faceable.rb +0 -20
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.9.
|
|
1
|
+
0.9.13
|
data/lib/cable.rb
CHANGED
|
@@ -16,9 +16,9 @@ module Cable
|
|
|
16
16
|
autoload :Block, 'cable/block'
|
|
17
17
|
autoload :SpecialAction, 'cable/special_action'
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
module Schema
|
|
20
|
+
require 'cable/schema/menuable'
|
|
21
|
+
end
|
|
22
22
|
|
|
23
23
|
module Errors
|
|
24
24
|
autoload :ResourceAssociationError, "cable/errors/resource_association_error"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module Schemata
|
|
2
|
+
module Schema
|
|
3
|
+
def menuable
|
|
4
|
+
apply_schema :title, String
|
|
5
|
+
apply_schema :cable_menuable_id , Integer
|
|
6
|
+
apply_schema :cable_menuable_type, String
|
|
7
|
+
apply_schema :parent_id, Integer
|
|
8
|
+
apply_schema :lft, Integer
|
|
9
|
+
apply_schema :rgt, Integer
|
|
10
|
+
apply_schema :url, String
|
|
11
|
+
apply_schema :menu_identifier, String
|
|
12
|
+
apply_schema :show_in_menu, :boolean, :default => true
|
|
13
|
+
apply_schema :meta_description, String
|
|
14
|
+
apply_schema :meta_keywords, String
|
|
15
|
+
apply_schema :special_action, String
|
|
16
|
+
apply_schema :marketable_url, String
|
|
17
|
+
apply_schema :show_on_landing_page, :boolean
|
|
18
|
+
apply_schema :template, String
|
|
19
|
+
apply_schema :tree_id, Integer
|
|
20
|
+
apply_schema :options, :text
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: cable
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.9.
|
|
5
|
+
version: 0.9.13
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Spencer Markowski
|
|
@@ -12,7 +12,7 @@ autorequire:
|
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
14
|
|
|
15
|
-
date: 2011-04-
|
|
15
|
+
date: 2011-04-14 00:00:00 -04:00
|
|
16
16
|
default_executable:
|
|
17
17
|
dependencies:
|
|
18
18
|
- !ruby/object:Gem::Dependency
|
|
@@ -186,7 +186,7 @@ files:
|
|
|
186
186
|
- lib/cable/page.rb
|
|
187
187
|
- lib/cable/rails/routes.rb
|
|
188
188
|
- lib/cable/railtie.rb
|
|
189
|
-
- lib/cable/schema/
|
|
189
|
+
- lib/cable/schema/menuable.rb
|
|
190
190
|
- lib/cable/setting.rb
|
|
191
191
|
- lib/cable/special_action.rb
|
|
192
192
|
- lib/generators/cable/install_generator.rb
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
## This is an example on how to create your own schema definition. Include it in cable.rb
|
|
2
|
-
|
|
3
|
-
# module Schema
|
|
4
|
-
# require 'cable/schema/faceable'
|
|
5
|
-
# end
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
# module Schemata
|
|
9
|
-
# #Influenced by devise's schema module. Methods defined here will be available within migartion files to apply a schema concept.
|
|
10
|
-
# module Schema
|
|
11
|
-
#
|
|
12
|
-
# # Provides a common set of address fields such as, street_address_1, street_address_2, city, state, zip_code and country as String fields.
|
|
13
|
-
# def faceable
|
|
14
|
-
# apply_schema :face, String
|
|
15
|
-
# apply_schema :eyes, String
|
|
16
|
-
# end
|
|
17
|
-
#
|
|
18
|
-
# end
|
|
19
|
-
# end
|
|
20
|
-
#
|