bhf 0.7.2 → 0.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2bc3e48804cadcd8f1238bf2e2c7ba8af1c341dd
4
- data.tar.gz: eaab323959a550d24df7c3926d5dec7f61ebfe7c
3
+ metadata.gz: 4d8936098b54f85786ebe73f7845dbbf32599f91
4
+ data.tar.gz: a832898bc53668d2ef8436935216d718922c8599
5
5
  SHA512:
6
- metadata.gz: f247f71c9f92453185f0e9af2883a8e7dccc76bf5fa3e2735a1d1abed743be8ef279c6c0831c2cdc4c3dacb5100efc7dda26b31f6daa7024286946e801de8be0
7
- data.tar.gz: 40e10a43e86556a4fe52573a3268af39cc008ef43e1e59ae15021cea99d5961ee32d7bd0b8d4a10dd09c2a4d822635a9cf92d91475a2511389925f5bdf77a522
6
+ metadata.gz: 438ca47d909e1eadaa7d04db9cf69fac50791fbda2c04f0a136545772899704b532c5d9e353637c27e3b69f201c1913c71b75125aac49413164459a4e45c4fbb
7
+ data.tar.gz: 38f24801dddb881ab71c14d8e4f5630675e645f3917ead4e3f0cb27f64578bf541f50d985da4fbee66a280f8057ec6e63d75171112d2ec72ce088469297b943e
@@ -26,6 +26,7 @@ var initHelper = function(callback){
26
26
 
27
27
  var editStack = new AjaxEditStack();
28
28
 
29
+
29
30
  initHelper(function(mainScope){
30
31
  var areaSelect = mainScope.getElement('#area_select');
31
32
  if (areaSelect) {
@@ -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
- # TODO: add area i18ned title
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 @platform.return_to
13
- - if (val = eval(@platform.return_to))
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
@@ -2,4 +2,4 @@
2
2
  = reflection_node f, field do
3
3
  %ul
4
4
  - data_source.each do |obj|
5
- %li= f.many_to_many_check_box obj, field.reflection.name, params
5
+ %li= f.many_to_many_check_box obj, field.reflection.name, params
data/config/routes.rb CHANGED
@@ -9,7 +9,7 @@ Bhf::Engine.routes.draw do
9
9
  put :sort, on: :collection
10
10
  post :duplicate, on: :member
11
11
 
12
- resources :embed_entries, except: [:index, :show], as: :embed
12
+ resources :embed_entries, except: [:index], as: :embed
13
13
  end
14
14
  end
15
15
 
@@ -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.page_title = 'Bahnhof Admin'
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.2
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-04-29 00:00:00.000000000 Z
11
+ date: 2014-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails