bhf 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/bhf/application.js +1 -0
- data/app/controllers/bhf/application_controller.rb +1 -1
- data/app/controllers/bhf/entries_controller.rb +5 -0
- data/app/views/bhf/entries/_form.haml +2 -4
- data/app/views/bhf/entries/form/has_and_belongs_to_many/_check_box.haml +1 -1
- data/config/routes.rb +1 -1
- data/lib/rails/generators/bhf/templates/initializer.rb +10 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d8936098b54f85786ebe73f7845dbbf32599f91
|
4
|
+
data.tar.gz: a832898bc53668d2ef8436935216d718922c8599
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 438ca47d909e1eadaa7d04db9cf69fac50791fbda2c04f0a136545772899704b532c5d9e353637c27e3b69f201c1913c71b75125aac49413164459a4e45c4fbb
|
7
|
+
data.tar.gz: 38f24801dddb881ab71c14d8e4f5630675e645f3917ead4e3f0cb27f64578bf541f50d985da4fbee66a280f8057ec6e63d75171112d2ec72ce088469297b943e
|
@@ -57,7 +57,7 @@ class Bhf::ApplicationController < ActionController::Base
|
|
57
57
|
|
58
58
|
def set_title
|
59
59
|
@app_title = Rails.application.class.to_s.split('::').first
|
60
|
-
|
60
|
+
|
61
61
|
@title = if Bhf::Engine.config.page_title
|
62
62
|
Bhf::Engine.config.page_title
|
63
63
|
else
|
@@ -19,6 +19,11 @@ class Bhf::EntriesController < Bhf::ApplicationController
|
|
19
19
|
|
20
20
|
def show
|
21
21
|
render file: 'public/404.html', layout: false and return unless @object
|
22
|
+
|
23
|
+
respond_to do |format|
|
24
|
+
format.html
|
25
|
+
format.json { render json: @object }
|
26
|
+
end
|
22
27
|
end
|
23
28
|
|
24
29
|
def create
|
@@ -9,10 +9,8 @@
|
|
9
9
|
= render partial: "bhf/entries/form/#{field.macro}/#{field.form_type}", locals: {f: f, field: field}
|
10
10
|
|
11
11
|
- unless @quick_edit
|
12
|
-
- if
|
13
|
-
|
14
|
-
= hidden_field :return_to, :option, name: :return_to, value: val
|
15
|
-
-# TODO: remove eval
|
12
|
+
- if params[:return_to]
|
13
|
+
= hidden_field :return, :to, name: :return_to, value: params[:return_to]
|
16
14
|
|
17
15
|
.node
|
18
16
|
.label
|
data/config/routes.rb
CHANGED
@@ -1,10 +1,17 @@
|
|
1
1
|
module Bhf
|
2
2
|
class Engine < Rails::Engine
|
3
|
+
|
4
|
+
# config.css << 'bhf'
|
5
|
+
# config.js << 'bhf'
|
6
|
+
# config.abstract_config << 'abstract'
|
3
7
|
|
4
|
-
config.
|
5
|
-
# config.css = ['bhf_extend']
|
6
|
-
# config.on_login_fail = :login_url
|
8
|
+
# config.on_login_fail = :root_url
|
7
9
|
# config.logout_path = :logout_path
|
8
10
|
|
11
|
+
# config.session_account_id = :admin_account_id
|
12
|
+
# config.session_auth_name = :is_admin
|
13
|
+
# config.account_model = 'User'
|
14
|
+
# config.account_model_find_method = 'find'
|
15
|
+
|
9
16
|
end
|
10
17
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bhf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Pawlik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|