Sha256: c9869b0ea021187473da95c290ccfed6c9595d62e076c8e8310b2b29b8d5cac4

Contents?: true

Size: 616 Bytes

Versions: 13

Compression:

Stored size: 616 Bytes

Contents

class <%= name %> < ActiveRecord::Base
  attr_reader :per_page
  @per_page = 7
  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

13 entries across 13 versions & 1 rubygems

Version Path
inline_forms-1.0.11 lib/generators/inline_forms/templates/model.erb
inline_forms-1.0.10 lib/generators/inline_forms/templates/model.erb
inline_forms-1.0.9 lib/generators/inline_forms/templates/model.erb
inline_forms-1.0.8 lib/generators/inline_forms/templates/model.erb
inline_forms-1.0.6 lib/generators/inline_forms/templates/model.erb
inline_forms-1.0.5 lib/generators/inline_forms/templates/model.erb
inline_forms-1.0.4 lib/generators/inline_forms/templates/model.erb
inline_forms-1.0.3 lib/generators/inline_forms/templates/model.erb
inline_forms-1.0.2 lib/generators/inline_forms/templates/model.erb
inline_forms-1.0.1 lib/generators/inline_forms/templates/model.erb
inline_forms-1.0.0 lib/generators/inline_forms/templates/model.erb
inline_forms-0.9.25 lib/generators/inline_forms/templates/model.erb
inline_forms-0.9.24 lib/generators/inline_forms/templates/model.erb