inline_forms 3.0.53 → 3.0.54
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d0bb4b0ad8696451452e4daa7e32e642f10f2c0
|
4
|
+
data.tar.gz: 600eab9a54a52ab024ad729a2dc12b03e7476cd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ee233ef11285f61b185ea740a4e0e9517fc578a1c5abc745ce825ba20528b50ee7b3d143019d8fd8dffb9cedd9fab8764c24cb012fe903de808b458aa1894cd
|
7
|
+
data.tar.gz: ab65fbfd1da77a041ee682753a6e7f1c3c23ef31663e32f379fe5d5daa47a43fb48a2b02489e3ca70233ba5841f4fd76a4db166b258ac1d672bd7aa4f7c088aa
|
@@ -339,8 +339,9 @@ create_file "config/locales/inline_forms_local.en.yml", <<-END_LOCALE.strip_here
|
|
339
339
|
inline_forms:
|
340
340
|
general:
|
341
341
|
application_title: #{app_name}
|
342
|
+
devise:
|
342
343
|
title_for_devise: #{app_name}
|
343
|
-
|
344
|
+
welcome: Welcome to #{app_name}!
|
344
345
|
END_LOCALE
|
345
346
|
|
346
347
|
say "- Migrating Database (only when using sqlite)"
|
@@ -368,11 +369,10 @@ create_file "app/controllers/application_controller.rb", <<-END_APPCONTROLLER.st
|
|
368
369
|
class ApplicationController < InlineFormsApplicationController
|
369
370
|
protect_from_forgery
|
370
371
|
|
371
|
-
# Comment next
|
372
|
+
# Comment next line if you don't want Devise authentication
|
372
373
|
before_filter :authenticate_user!
|
373
|
-
layout 'devise' if :devise_controller?
|
374
374
|
|
375
|
-
# Comment next 6 lines if you want CanCan authorization
|
375
|
+
# Comment next 6 lines if you do not want CanCan authorization
|
376
376
|
enable_authorization :unless => :devise_controller?
|
377
377
|
|
378
378
|
rescue_from CanCan::Unauthorized do |exception|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<nav id='inline_forms_devise_top_nav_bar' class='top-bar' data-topbar>
|
3
3
|
<ul class='title-area'>
|
4
4
|
<li class='name'>
|
5
|
-
<h1><a href='/'><%= t('inline_forms.
|
5
|
+
<h1><a href='/'><%= t('inline_forms.devise.title_for_devise') %> <%= InlineForms::VERSION %></a></h1>
|
6
6
|
</li>
|
7
7
|
<li class='toggle-topbar menu-icon'>
|
8
8
|
<a href='#'><span></span></a>
|
@@ -15,4 +15,5 @@
|
|
15
15
|
<% flash.each do |name, msg| %>
|
16
16
|
<%= content_tag :div, msg, :id => "flash_#{name}", :class => 'devise flash' %>
|
17
17
|
<% end unless flash.blank? %>
|
18
|
+
<%= devise_error_messages! %>
|
18
19
|
</div>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<nav id='inline_forms_devise_top_nav_bar' class='top-bar' data-topbar>
|
3
3
|
<ul class='title-area'>
|
4
4
|
<li class='name'>
|
5
|
-
<h1><a href='/'><%= t('inline_forms.
|
5
|
+
<h1><a href='/'><%= t('inline_forms.devise.title_for_devise') %> <%= InlineForms::VERSION %></a></h1>
|
6
6
|
</li>
|
7
7
|
<li class='toggle-topbar menu-icon'>
|
8
8
|
<a href='#'><span></span></a>
|
@@ -16,5 +16,4 @@
|
|
16
16
|
<%= content_tag :div, msg, :id => "flash_#{name}", :class => 'devise flash' %>
|
17
17
|
<% end unless flash.blank? %>
|
18
18
|
<%= devise_error_messages! %>
|
19
|
-
|
20
19
|
</div>
|
data/lib/inline_forms/version.rb
CHANGED