hydra-editor 0.2.0 → 0.2.1

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: 7d4df6ff1905911d18d55cf3a29f90110ed2e9f6
4
- data.tar.gz: 6fe5727b88830e9bffdeb14def5086b424a879c6
3
+ metadata.gz: 2b812815848fd931a305e6daaeba0d4bd37a2e3b
4
+ data.tar.gz: e76c5b91ae1e127edede454955484f66946470f5
5
5
  SHA512:
6
- metadata.gz: eea2175ee9783b6da57c28fe8ba8bb74ede02a8bf324a5f7e2c3770755e5472a01e49f6b2783e2483b07958b9a8ab9038693d9fd46d855152bcee411cfa2abad
7
- data.tar.gz: c3ae9b2431484a4c62c5b8302614ab587ebd3e56c0e55baf6f181015dc3b9e07031e0b07bcba4c520e197e2be20b20c62d452888284dd3d208dac4ee08a686ca
6
+ metadata.gz: fe045f0271232ab10b264b43372283e0da24cf81c3b00de27e8d335556e843523dbcf3190f7946c287a71efce8b9c0e3906bfcda3cb9699376a2719473230e36
7
+ data.tar.gz: 83ad623003fd061b2fdbc17fd4cd9a59b7880b57907e4e4bdc4207866b51fe638bfc9fba330d49dadac3cc27dacfdff0b7ea721e45cd3260b7cc840d4f2c791b
@@ -7,6 +7,7 @@ module RecordsControllerBehavior
7
7
  rescue_from HydraEditor::InvalidType do
8
8
  render 'records/choose_type'
9
9
  end
10
+ helper_method :resource
10
11
  end
11
12
 
12
13
  module ClassMethods
@@ -46,7 +46,7 @@ module RecordsHelperBehavior
46
46
  end
47
47
 
48
48
  def render_record_title
49
- Array(@record.title).first
49
+ Array(resource.title).first
50
50
  end
51
51
 
52
52
  private
@@ -1,4 +1,4 @@
1
- <%= bootstrap_form_for record, url: record_form_action_url(record), html: {:class => 'form-inline editor'} do |f| %>
1
+ <%= bootstrap_form_for resource, url: record_form_action_url(resource), html: {:class => 'form-inline editor'} do |f| %>
2
2
  <div id="descriptions_display">
3
3
  <h2 class="non lower">
4
4
  <%= t('hydra_editor.form.title') %>
@@ -1,3 +1,3 @@
1
1
  <h1><%= edit_record_title %></h1>
2
- <%= render :partial=>'records/form', locals: {record: @record} %>
2
+ <%= render :partial=>'records/form' %>
3
3
 
@@ -1,2 +1,2 @@
1
1
  <h1><%= new_record_title %></h1>
2
- <%= render :partial=>'records/form', locals: {record: @record} %>
2
+ <%= render :partial=>'records/form' %>
@@ -1,3 +1,3 @@
1
1
  module HydraEditor
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydra-editor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-02 00:00:00.000000000 Z
12
+ date: 2014-01-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails