useful_helpers 0.0.23 → 0.0.24

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,8 @@
1
1
  # coding: utf-8
2
2
  require "useful_helpers/helpers/browser_helper"
3
- require "useful_helpers/helpers/editor_helper"
3
+ require "useful_helpers/helpers/buttons_helper"
4
4
  require "useful_helpers/helpers/date_time_helper"
5
+ require "useful_helpers/helpers/editor_helper"
5
6
  require "useful_helpers/helpers/formtastic_helper"
6
7
  require "useful_helpers/helpers/paginate_helper"
7
8
  require "useful_helpers/helpers/seo_helper"
@@ -15,8 +16,9 @@ module UsefulHelpers
15
16
 
16
17
  initializer "useful_helpers.includers" do |app|
17
18
  ActionView::Base.send :include, UsefulHelpers::Helpers::BrowserHelper
18
- ActionView::Base.send :include, UsefulHelpers::Helpers::EditorHelper
19
+ ActionView::Base.send :include, UsefulHelpers::Helpers::ButtonsHelper
19
20
  ActionView::Base.send :include, UsefulHelpers::Helpers::DateTimeHelper
21
+ ActionView::Base.send :include, UsefulHelpers::Helpers::EditorHelper
20
22
  ActionView::Base.send :include, UsefulHelpers::Helpers::FormtasticHelper
21
23
  ActionView::Base.send :include, UsefulHelpers::Helpers::PaginateHelper
22
24
  ActionView::Base.send :include, UsefulHelpers::Helpers::SeoHelper
@@ -0,0 +1,8 @@
1
+ # coding: utf-8
2
+ module ButtonsHelper
3
+ def buttons(&block)
4
+ content_for :buttons do
5
+ content_tag :div, :class => "buttons", &block
6
+ end
7
+ end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module UsefulHelpers
2
- VERSION = "0.0.23"
2
+ VERSION = "0.0.24"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: useful_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.23
4
+ version: 0.0.24
5
5
  prerelease:
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: 2013-07-27 00:00:00.000000000 Z
12
+ date: 2013-07-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -79,6 +79,7 @@ files:
79
79
  - lib/useful_helpers/engine.rb
80
80
  - lib/useful_helpers/helpers.rb
81
81
  - lib/useful_helpers/helpers/browser_helper.rb
82
+ - lib/useful_helpers/helpers/buttons_helper.rb
82
83
  - lib/useful_helpers/helpers/date_time_helper.rb
83
84
  - lib/useful_helpers/helpers/editor_helper.rb
84
85
  - lib/useful_helpers/helpers/formtastic_helper.rb