voluntary 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/app/helpers/product_helper.rb +5 -3
- data/config/initializers/vendor_extensions.rb +1 -0
- data/lib/generators/voluntary/install/install_generator.rb +0 -17
- data/lib/generators/voluntary/product_dummy/product_dummy_generator.rb +105 -0
- data/lib/generators/voluntary/product_dummy/templates/app/controllers/application_controller.rb +3 -0
- data/lib/generators/voluntary/product_dummy/templates/app/controllers/home_controller.rb +4 -0
- data/lib/generators/voluntary/product_dummy/templates/app/models/ability.rb +49 -0
- data/lib/generators/voluntary/product_dummy/templates/app/models/app_config.rb +32 -0
- data/lib/generators/voluntary/product_dummy/templates/app/views/home/index.html.erb +0 -0
- data/lib/generators/voluntary/product_dummy/templates/app/views/layouts/application.html.erb +50 -0
- data/lib/generators/voluntary/product_dummy/templates/config/application.yml +147 -0
- data/lib/generators/voluntary/product_dummy/templates/config/cucumber.yml +8 -0
- data/lib/generators/voluntary/product_dummy/templates/config/database.example.yml +28 -0
- data/lib/generators/voluntary/product_dummy/templates/config/email.example.yml +9 -0
- data/lib/generators/voluntary/product_dummy/templates/config/locale_settings.yml +121 -0
- data/lib/generators/voluntary/product_dummy/templates/config/main_navigation.rb +262 -0
- data/lib/generators/voluntary/product_dummy/templates/config/mongoid.yml +78 -0
- data/lib/generators/voluntary/product_dummy/templates/config/routes.rb +3 -0
- data/lib/generators/voluntary/product_dummy/templates/features/step_definitions/area_behaviour_steps.rb +17 -0
- data/lib/generators/voluntary/product_dummy/templates/features/step_definitions/area_steps.rb +11 -0
- data/lib/generators/voluntary/product_dummy/templates/features/step_definitions/candidature_steps.rb +34 -0
- data/lib/generators/voluntary/product_dummy/templates/features/step_definitions/comment_behaviour_steps.rb +23 -0
- data/lib/generators/voluntary/product_dummy/templates/features/step_definitions/comment_steps.rb +25 -0
- data/lib/generators/voluntary/product_dummy/templates/features/step_definitions/email_steps.rb +89 -0
- data/lib/generators/voluntary/product_dummy/templates/features/step_definitions/factory_steps.rb +120 -0
- data/lib/generators/voluntary/product_dummy/templates/features/step_definitions/javascript_steps.rb +15 -0
- data/lib/generators/voluntary/product_dummy/templates/features/step_definitions/navigation_steps.rb +3 -0
- data/lib/generators/voluntary/product_dummy/templates/features/step_definitions/product_steps.rb +15 -0
- data/lib/generators/voluntary/product_dummy/templates/features/step_definitions/project_steps.rb +23 -0
- data/lib/generators/voluntary/product_dummy/templates/features/step_definitions/resources_steps.rb +8 -0
- data/lib/generators/voluntary/product_dummy/templates/features/step_definitions/session_steps.rb +35 -0
- data/lib/generators/voluntary/product_dummy/templates/features/step_definitions/state_machines/vacancy_steps.rb +7 -0
- data/lib/generators/voluntary/product_dummy/templates/features/step_definitions/story_steps.rb +33 -0
- data/lib/generators/voluntary/product_dummy/templates/features/step_definitions/task_steps.rb +29 -0
- data/lib/generators/voluntary/product_dummy/templates/features/step_definitions/user_steps.rb +4 -0
- data/lib/generators/voluntary/product_dummy/templates/features/step_definitions/vacancy_steps.rb +32 -0
- data/lib/generators/voluntary/product_dummy/templates/features/step_definitions/web_steps.rb +271 -0
- data/lib/generators/voluntary/product_dummy/templates/features/step_definitions/wizards/story_steps.rb +15 -0
- data/lib/generators/voluntary/product_dummy/templates/features/support/database_cleaner_patches.rb +24 -0
- data/lib/generators/voluntary/product_dummy/templates/features/support/env.rb +86 -0
- data/lib/generators/voluntary/product_dummy/templates/features/support/integration_sessions_controller.rb +32 -0
- data/lib/generators/voluntary/product_dummy/templates/features/support/integration_sessions_form.html.erb +1 -0
- data/lib/generators/voluntary/product_dummy/templates/features/support/paths.rb +98 -0
- data/lib/generators/voluntary/product_dummy/templates/features/support/selectors.rb +44 -0
- data/lib/generators/voluntary/product_dummy/templates/features/support/spork_env +72 -0
- data/lib/generators/voluntary/product_dummy/templates/features/support/user_cuke_helpers.rb +78 -0
- data/lib/generators/voluntary/product_dummy/templates/spec/support/deferred_garbage_collector.rb +45 -0
- data/lib/generators/voluntary/product_dummy/templates/spec/support/devise.rb +3 -0
- data/lib/generators/voluntary/product_dummy/templates/spec/support/mongo_database_cleaner.rb +25 -0
- data/lib/voluntary/version.rb +1 -1
- metadata +212 -168
- data/app/views/products/types/text_creation/stories/_form.html.erb +0 -19
- data/app/views/products/types/text_creation/stories/_task_fields.html.erb +0 -7
- data/lib/vendors/active_model/naming.rb +0 -14
@@ -1,19 +0,0 @@
|
|
1
|
-
<%= simple_form_for(@story, html: {class: 'form-vertical'}) do |f| %>
|
2
|
-
<%= render partial: 'shared/form/error_messages', locals: { resource: @story } %>
|
3
|
-
|
4
|
-
<div class="form-inputs">
|
5
|
-
<%= @story.project ? f.hidden_field(:project_id) : f.input(:project_id, collection: Project.all) %>
|
6
|
-
<%= f.input :name %>
|
7
|
-
<%= f.input :language, collection: all_language_options %>
|
8
|
-
<%= f.input :min_length %>
|
9
|
-
<%= f.input :max_length %>
|
10
|
-
<%#= render 'products/mixins/keywords', f: f %>
|
11
|
-
<%#= f.check_box :with_quality_assurance %>
|
12
|
-
<%#= f.label :with_quality_assurance, t('activerecord.attributes.story.with_quality_assurance') %>
|
13
|
-
<%= f.input :text, as: :text, input_html: {style: 'width:500px; height:100px;'} %>
|
14
|
-
</div>
|
15
|
-
|
16
|
-
<div class="form-actions">
|
17
|
-
<%= f.button :submit %>
|
18
|
-
</div>
|
19
|
-
<% end %>
|
@@ -1,14 +0,0 @@
|
|
1
|
-
module ActiveModel
|
2
|
-
module Naming
|
3
|
-
private
|
4
|
-
|
5
|
-
def self.model_name_from_record_or_class(record_or_class)
|
6
|
-
return record_class if record_or_class.is_a?(Class)
|
7
|
-
|
8
|
-
model_name = convert_to_model(record_or_class).class.model_name
|
9
|
-
new_record_or_class = Voluntary::Helpers::Application.root_model_class_name_helper(model_name.constantize.new).constantize.new
|
10
|
-
|
11
|
-
convert_to_model(new_record_or_class).class.model_name
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|