Sha256: b8cb90ca3d5bd3849e9e4fd7f26d9e323d525cfd6f9f04474fef49ac625c7d66

Contents?: true

Size: 1.8 KB

Versions: 3

Compression:

Stored size: 1.8 KB

Contents

# :main: flexa_lib.rb
# = FlexaLib
#
# Biblioteca para Equipe da Flexa de Desenvolvimento
#
# Incluir a gem no Gemfile do projeto
#
#  gem 'flexa_lib'
#
# ---
#
# Usando os Geradores Disponiveis
# 
# - Gerador de CRUD(templates de VIEW)
#
#  rails g flexa_lib:crud NomeDoController
#
# - Gerador de LOOKUP(gera um controller e 
# uma view de Lookup em Namespace)
# os parametros são o nome do model e a 
# lista de campos que devem aparecer no grid do lookup
#
#  rails g flexa_lib:lookup NomeDoModel campo1 campo2
#
#
# Aplicação do Twitter-Bootstrap na Aplicação
#
# - No "application.css" deve ficar como no exemplo abaixo:
#
#   /*
#    *= require_self
#    *= require flexa-theme
#   */
#
#
# - No "application.js" deve ficar como no exemplo abaixo:
#
#   //= require jquery
#   //= require jquery_ujs
#   //= require flexa-themejs
#
#
module FlexaLib end





########################################
###### BIBLIOTECAS DE TERCEIROS ########
########################################

#WILL_PAGINATE
require 'will_paginate'
require 'will_paginate_twitter_bootstrap'

#TABLE_FOR
require 'table_for_collection'

#FORMTASTIC
require 'formtastic-bootstrap'


########################################
############## FLEXA LIB ###############
########################################
require 'flexa_lib/engine' if defined?(::Rails) # For tests
require 'flexa_lib/version'

#inputs flexa
require 'flexa_lib/inputs'


#helpers flexa
require 'flexa_lib/helpers'

module ActionView
  class Base
    include FlexaLib::Helpers

  end
end


####################################
#### Definir o Formtastic-Bootstrap 
#### como FormBuilder Padrão
###################################
Formtastic::Helpers::FormHelper.builder = FormtasticBootstrap::FormBuilder


#validacoes de CPF e CNPJ
require 'flexa_lib/brcpfcnpj'

#### FIM DO ARQUIVO ##########

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flexa_lib-0.1.21 lib/flexa_lib.rb
flexa_lib-0.1.20 lib/flexa_lib.rb
flexa_lib-0.1.19 lib/flexa_lib.rb