flexa_lib 0.2.6 → 0.2.7
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/flexa_lib.gemspec +2 -2
- data/lib/flexa_lib.rb +9 -1
- data/lib/generators/flexa_lib/crud/templates/view_edit.html.erb +1 -1
- data/lib/generators/flexa_lib/crud/templates/view_new.html.erb +1 -1
- data/lib/generators/flexa_lib/crud/templates/view_print.html.erb +1 -1
- data/lib/generators/flexa_lib/crud/templates/view_show.html.erb +1 -1
- data/lib/generators/flexa_lib/crud/templates/view_tables.html.erb +4 -4
- metadata +2 -1
data/flexa_lib.gemspec
CHANGED
|
@@ -7,11 +7,11 @@ require 'flexa_lib/version'
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = 'flexa_lib'
|
|
9
9
|
# s.version = FlexaLib::VERSION
|
|
10
|
-
s.version = '0.2.
|
|
10
|
+
s.version = '0.2.7'
|
|
11
11
|
s.platform = Gem::Platform::RUBY
|
|
12
12
|
|
|
13
13
|
s.authors = ['Allan Freitas','Marcio Sfalsin']
|
|
14
|
-
s.email = ['allan.freitas@flexait.com.br']
|
|
14
|
+
s.email = ['allan.freitas@flexait.com.br','marcio.sfalsin@flexait.com.br']
|
|
15
15
|
s.homepage = "http://flexait.com.br/"
|
|
16
16
|
s.summary = %q{Implementações feitas para RubyOnRails 3.1+}
|
|
17
17
|
s.description = %q{Helpers, Geradores(de controllers, views, Scaffolds Personalizados) Em Breve Documentação.}
|
data/lib/flexa_lib.rb
CHANGED
|
@@ -77,17 +77,25 @@ require 'flexa_lib/helpers'
|
|
|
77
77
|
module ActionView
|
|
78
78
|
class Base
|
|
79
79
|
include FlexaLib::Helpers
|
|
80
|
-
|
|
81
80
|
end
|
|
82
81
|
end
|
|
83
82
|
|
|
84
83
|
|
|
84
|
+
|
|
85
|
+
#Extensoes para ActiveRecord
|
|
86
|
+
require 'active_support'
|
|
87
|
+
ActiveSupport.on_load :active_record do
|
|
88
|
+
require 'flexa_lib/model_extensions'
|
|
89
|
+
end
|
|
90
|
+
|
|
85
91
|
####################################
|
|
86
92
|
#### Definir o flexa_formtastic_bootstrap
|
|
87
93
|
#### como FormBuilder Padrão
|
|
88
94
|
###################################
|
|
89
95
|
Formtastic::Helpers::FormHelper.builder = FlexaFormtasticBootstrap::FormBuilder
|
|
90
96
|
|
|
97
|
+
##### Definir quantidade de registros por Página em Paginação ####
|
|
98
|
+
WillPaginate.per_page = 25
|
|
91
99
|
|
|
92
100
|
#validacoes de CPF e CNPJ
|
|
93
101
|
require 'flexa_lib/brcpfcnpj'
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
<%%= render :partial=>'form', :locals=>{:f=>f} %>
|
|
6
6
|
|
|
7
|
-
<%%= flexa_fixed_toolbar "<%= plural_model_name %>", <%= plural_resource_name %>_path do %>
|
|
7
|
+
<%%= flexa_fixed_toolbar "<%= plural_model_name.humanize %>", <%= plural_resource_name %>_path do %>
|
|
8
8
|
<%%= flexa_submit_button %>
|
|
9
9
|
<%%= flexa_cancel_button_to @<%= resource_name %> %>
|
|
10
10
|
<%%= flexa_delete_button_to @<%= resource_name %> %>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
<%%= render :partial=>'form', :locals=>{:f=>f} %>
|
|
6
6
|
|
|
7
|
-
<%%= flexa_fixed_toolbar "<%= plural_model_name %>", <%= plural_resource_name %>_path do %>
|
|
7
|
+
<%%= flexa_fixed_toolbar "<%= plural_model_name.humanize %>", <%= plural_resource_name %>_path do %>
|
|
8
8
|
<%%= flexa_submit_button %>
|
|
9
9
|
<%%= flexa_cancel_button_to @<%= resource_name %> %>
|
|
10
10
|
<%%end%>
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
<%%= render :partial=>'form', :locals=>{:f=>f} %>
|
|
7
7
|
|
|
8
|
-
<%%= flexa_fixed_toolbar "<%= plural_model_name %>", <%= plural_resource_name %>_path do %>
|
|
8
|
+
<%%= flexa_fixed_toolbar "<%= plural_model_name.humanize %>", <%= plural_resource_name %>_path do %>
|
|
9
9
|
<%%= flexa_submit_button "Imprimir" %>
|
|
10
10
|
<%%= flexa_cancel_button_to @<%= resource_name %> %>
|
|
11
11
|
<%%end%>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
<%%= render :partial=>'form', :locals=>{:f=>f} %>
|
|
8
8
|
|
|
9
|
-
<%%= flexa_fixed_toolbar "<%= plural_model_name %>", <%= plural_resource_name %>_path do %>
|
|
9
|
+
<%%= flexa_fixed_toolbar "<%= plural_model_name.humanize %>", <%= plural_resource_name %>_path do %>
|
|
10
10
|
<%%= flexa_cancel_button_to @<%= resource_name %> %>
|
|
11
11
|
<%%= flexa_edit_button_to @<%= resource_name %> %>
|
|
12
12
|
<%%= flexa_delete_button_to @<%= resource_name %> %>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<%%= flexa_table_for @<%= plural_resource_name %> do -%>
|
|
2
2
|
<% columns.each do |col| -%>
|
|
3
|
-
<%% column :<%=col.name%>, :title=>"<%=col.name.
|
|
3
|
+
<%% column :<%=col.name%>, :title=>"<%=col.name.humanize%>" %>
|
|
4
4
|
<% end %>
|
|
5
5
|
<%% end -%>
|
|
6
6
|
|
|
7
|
-
<%%= flexa_fixed_toolbar "<%= plural_model_name %>", <%= plural_resource_name %>_path do %>
|
|
8
|
-
<%%= flexa_add_button_to <%= resource_name.
|
|
9
|
-
<%%= flexa_search_tool <%= resource_name.
|
|
7
|
+
<%%= flexa_fixed_toolbar "<%= plural_model_name.humanize %>", <%= plural_resource_name %>_path do %>
|
|
8
|
+
<%%= flexa_add_button_to <%= resource_name.camelcase %> %>
|
|
9
|
+
<%%= flexa_search_tool <%= resource_name.camelcase %> %>
|
|
10
10
|
<%%= flexa_will_paginate @<%= plural_resource_name %> %>
|
|
11
11
|
<%% end %>
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: flexa_lib
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.2.
|
|
5
|
+
version: 0.2.7
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Allan Freitas
|
|
@@ -60,6 +60,7 @@ dependencies:
|
|
|
60
60
|
description: "Helpers, Geradores(de controllers, views, Scaffolds Personalizados) Em Breve Documenta\xC3\xA7\xC3\xA3o."
|
|
61
61
|
email:
|
|
62
62
|
- allan.freitas@flexait.com.br
|
|
63
|
+
- marcio.sfalsin@flexait.com.br
|
|
63
64
|
executables: []
|
|
64
65
|
|
|
65
66
|
extensions: []
|