Sha256: d684e0f9c246e501f74ed5936ed9372df5f0c739d147a446dd13fa6c5dfb191b

Contents?: true

Size: 619 Bytes

Versions: 10

Compression:

Stored size: 619 Bytes

Contents

class <%= name %> < ActiveRecord::Base
  cattr_reader :per_page
  @@per_page = 10
  attr_writer :inline_forms_attribute_list

<%= @belongs_to if @belongs_to.length > 1 -%>
<%= @has_many if @has_many.length > 1 -%>
<%= @has_one if @has_one.length > 1 -%>
<%= @habtm if @habtm.length > 1 -%>
<%= @has_attached_files if @has_attached_files.length > 1 -%>
<%= @presentation  if @presentation.length > 1 -%>
<%= @inline_forms_attribute_list -%>
<%= @order  if @order.length > 1 -%>

  def self.not_accessible_through_html?
    <%= @flag_not_accessible_through_html %>
  end

  def self.order_by_clause
    "name"
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
inline_forms-0.9.23 lib/generators/inline_forms/templates/model.erb
inline_forms-0.9.22 lib/generators/inline_forms/templates/model.erb
inline_forms-0.9.21 lib/generators/inline_forms/templates/model.erb
inline_forms-0.9.20 lib/generators/inline_forms/templates/model.erb
inline_forms-0.9.19 lib/generators/inline_forms/templates/model.erb
inline_forms-0.9.18 lib/generators/inline_forms/templates/model.erb
inline_forms-0.9.17 lib/generators/inline_forms/templates/model.erb
inline_forms-0.9.16 lib/generators/inline_forms/templates/model.erb
inline_forms-0.9.15 lib/generators/inline_forms/templates/model.erb
inline_forms-0.9.14 lib/generators/inline_forms/templates/model.erb