scaffold_logic 1.6.3 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.3
1
+ 1.7.0
@@ -184,7 +184,21 @@ module ScaffoldLogic
184
184
  end
185
185
 
186
186
  module ActionControllerMixin
187
- def handle_date_time(params, model, attr)
187
+ # Class methods ==================================================================================
188
+ def self.add_breadcrumb name, url, options = {}
189
+ before_filter options do |controller|
190
+ controller.send :add_breadcrumb, name, url
191
+ end
192
+ end
193
+
194
+ # Instance methods ===============================================================================
195
+ def add_breadcrumb name, url = ''
196
+ @breadcrumbs ||= []
197
+ url = eval(url) if url =~ /_path|_url|@/
198
+ @breadcrumbs << [name, url]
199
+ end
200
+
201
+ def handle_date_time params, model, attr
188
202
  if params && params[model] && params[model]["#{attr}(1i)"]
189
203
  year = params[model]["#{attr}(1i)"]
190
204
  month = params[model]["#{attr}(2i)"]
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "scaffold_logic"
8
- s.version = "1.6.3"
8
+ s.version = "1.7.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Corey Ehmke"]
12
- s.date = "2011-09-14"
12
+ s.date = "2011-09-22"
13
13
  s.description = "Scaffold and UI generator for SEO Logic applications."
14
14
  s.email = "corey@seologic.com"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scaffold_logic
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
- - 6
9
- - 3
10
- version: 1.6.3
8
+ - 7
9
+ - 0
10
+ version: 1.7.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Corey Ehmke
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-14 00:00:00 Z
18
+ date: 2011-09-22 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: Scaffold and UI generator for SEO Logic applications.