ecm_contact 1.0.7.pre → 1.0.8.pre

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,7 @@ class Ecm::Contact::RequestsController < ApplicationController
9
9
  @contact_request = Ecm::Contact::Request.new(params[:ecm_contact_request])
10
10
 
11
11
  if @contact_request.deliver
12
- redirect_to({ :action => 'index' }, :notice => I18n.t('ecm.contact.form.messages.delivered'))
12
+ redirect_to({ :action => 'index' }, :notice => lambda { I18n.t('ecm.contact.form.messages.delivered') }.call )
13
13
  else
14
14
  render :index
15
15
  end
@@ -3,7 +3,7 @@
3
3
  <%= f.input :email, :input_html => { :class => Ecm::Contact::Configuration.input_email_css_classes } %>
4
4
  <%= f.input :phone, :input_html => { :class => Ecm::Contact::Configuration.input_phone_css_classes } %>
5
5
  <%= f.input :message, :as => :text, :input_html => { :class => Ecm::Contact::Configuration.input_message_css_classes } %>
6
- <%= f.input :terms_of_service, :as => :boolean, :input_html => { :class => Ecm::Contact::Configuration.input_terms_of_service_css_classes } %>
6
+ <%= f.input :terms_of_service, :as => :boolean, :required => true, :input_html => { :class => Ecm::Contact::Configuration.input_terms_of_service_css_classes } %>
7
7
 
8
8
  <div class="controls form-actions">
9
9
  <%= button_tag(:type => 'submit', :class => 'input btn btn-primary', :id => 'ecm_contact_request_submit') do %>
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module Contact
3
- VERSION = '1.0.7.pre'
3
+ VERSION = '1.0.8.pre'
4
4
  end
5
5
  end
@@ -4,7 +4,7 @@ module Ecm
4
4
  class LocalesGenerator < Rails::Generators::Base
5
5
  desc "Generates the locales"
6
6
 
7
- source_root File.expand_path('../../../../../../config/locales', __FILE__)
7
+ source_root File.expand_path('../templates', __FILE__)
8
8
 
9
9
  def generate_intializer
10
10
  copy_file "ecm.contact.de.yml", "config/locales/ecm.contact.de.yml"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_contact
3
3
  version: !ruby/object:Gem::Version
4
- hash: 961915976
4
+ hash: 961916020
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 7
9
+ - 8
10
10
  - pre
11
- version: 1.0.7.pre
11
+ version: 1.0.8.pre
12
12
  platform: ruby
13
13
  authors:
14
14
  - Roberto Vasquez Angel
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-11-07 00:00:00 Z
19
+ date: 2012-12-13 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: rails
@@ -234,13 +234,13 @@ files:
234
234
  - app/views/ecm/contact/requests/_form.erb
235
235
  - app/views/ecm/contact/requests/index.html.erb
236
236
  - app/mail_forms/ecm/contact/request.rb
237
- - config/locales/ecm.contact.routes.de.yml
238
- - config/locales/ecm.contact.de.yml
239
- - config/locales/ecm.contact.routes.en.yml
240
- - config/locales/ecm.contact.request.en.yml
241
- - config/locales/ecm.contact.en.yml
242
- - config/locales/ecm.contact.request.de.yml
243
237
  - lib/generators/ecm/contact/locales/locales_generator.rb
238
+ - lib/generators/ecm/contact/locales/templates/ecm.contact.routes.de.yml
239
+ - lib/generators/ecm/contact/locales/templates/ecm.contact.de.yml
240
+ - lib/generators/ecm/contact/locales/templates/ecm.contact.routes.en.yml
241
+ - lib/generators/ecm/contact/locales/templates/ecm.contact.request.en.yml
242
+ - lib/generators/ecm/contact/locales/templates/ecm.contact.en.yml
243
+ - lib/generators/ecm/contact/locales/templates/ecm.contact.request.de.yml
244
244
  - lib/generators/ecm/contact/install/install_generator.rb
245
245
  - lib/generators/ecm/contact/install/templates/ecm_contact.rb
246
246
  - lib/ecm_contact.rb