templus_models 1.3.3 → 1.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 401e0317c45af852e7658e9b2e01637bff0e0f7f
4
- data.tar.gz: 90d65d031941c8a03256dd78a8080dc27ea65408
3
+ metadata.gz: e8acf3763afa3c7ceeeadefb3b9fb7c764e71ddc
4
+ data.tar.gz: 80fbf163d02171dd6d380c12e8384c44c6f3fdc6
5
5
  SHA512:
6
- metadata.gz: bb87febe26cfbf079f2a6cc285edc3d4f865c33359b3db3e98e86fe409cd044d0ea2b76d4ad7ec041de469d34876de5c87ff3ac26fa31590f9b0aa4edfc8342e
7
- data.tar.gz: da7c2ddf625dbf5a4a206e22db3760ca88637c710b3c566853dab4dda75628b2a4be0bc11857980c0c6e4e7f0035cfff5687a3d1193616a763771a577aaeeb77
6
+ metadata.gz: fac4a3607dfccd37eb96af5710bd181cabebaa96f1bf6f0b3c0ecbfcc8bf5f0df91a24ad54bb79aafa3694d9eedb3ad022ca6ec2e5d9b4a57a58241fa93a224c
7
+ data.tar.gz: 278edfee365328d8f4f7751d9d05d96cb35a476009ae42eb2786fe0e4395ea0596c8e63482543e25e4d72eefa1eda704f78425b0254d8685f1fe5b7172f4b24c
@@ -1,4 +1,4 @@
1
- <div class='alert alert-<%= tipo %> alert-dismissable'>"
2
- <button aria-hidden='true' data-dismiss='alert' class='close' type='button'>×</button>"
3
- <%= mensagem %>
1
+ <div class='alert alert-<%= tipo %> alert-dismissable'>
2
+ <button aria-hidden='true' data-dismiss='alert' class='close' type='button'>×</button>
3
+ <%= mensagem.html_safe %>
4
4
  </div>
@@ -10,7 +10,7 @@
10
10
  <ul>
11
11
  <% mensagens.each do |mensagem| %>
12
12
  <li>
13
- <%= mensagem %>
13
+ <%= mensagem.html_safe %>
14
14
  </li>
15
15
  <% end %>
16
16
  </ul>
@@ -1,10 +1,8 @@
1
1
  class <%=@model.name%>Crud < RaroCrud
2
2
 
3
3
  titulo "<%=@model.name.pluralize%>"
4
- subtitulo "Subtitulo", :index
5
- descricao "Descrição do Cadastro", :index
6
4
 
7
- link_superior "Novo <%=@model.name%>", id: "novo-button", icon: "plus", link: "new"
5
+ link_superior "Novo <%=@model.name%>", id: "novo-button", icon: "plus", link: "new", can: Proc.new {|obj| Usuario.current.ability.can?(:create, obj)}
8
6
 
9
7
  ordenar_por :created_at
10
8
  itens_por_pagina 20
@@ -1,3 +1,3 @@
1
1
  module TemplusModels
2
- VERSION = "1.3.3"
2
+ VERSION = "1.3.4"
3
3
  end
@@ -1,4 +1,5 @@
1
1
  class Estado < ActiveRecord::Base
2
+ has_many :cidades, :class_name => "Cidade", :foreign_key => "estado_id", dependent: :destroy
2
3
  def to_s
3
4
  sigla
4
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: templus_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Sol